From 1d23caca7809c13582a0d829239ba639a56a198c Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 1 Sep 2022 09:19:16 +0200 Subject: [PATCH] Use my comment style --- alpine.dockerfile | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/alpine.dockerfile b/alpine.dockerfile index 1bb9cd7..a0ab436 100644 --- a/alpine.dockerfile +++ b/alpine.dockerfile @@ -1,29 +1,29 @@ -#This Dockerfile creates a build for all architectures +# This Dockerfile creates a build for all architectures -#Image that copies in the files and passes them to the main image +# Image that copies in the files and passes them to the main image FROM alpine:3.16.2 AS copytask #FROM ubuntu:focal AS copytask ARG TARGETPLATFORM -#Move the output files to where they need to be +# Move the output files to where they need to be RUN mkdir /files COPY _output/*.tar.gz /files/ COPY UI/Web/dist /files/wwwroot COPY copy_runtime.sh /copy_runtime.sh RUN /copy_runtime.sh -#Production image -FROM alpine:3.16.2 AS copytask -#FROM ubuntu:focal +# Production image +FROM alpine:3.16.2 +# FROM ubuntu:focal COPY --from=copytask /Kavita /kavita COPY --from=copytask /files/wwwroot /kavita/wwwroot -#Installs program dependencies -RUN apt-get update \ - && apt-get install -y libicu-dev libssl1.1 libgdiplus curl \ - && rm -rf /var/lib/apt/lists/* +# Installs program dependencies +#RUN apt-get update \ +# && apt-get install -y libicu-dev libssl1.1 libgdiplus curl \ +# && rm -rf /var/lib/apt/lists/* # in /etc/apk/repositories # enable 3.16/community repo @@ -42,7 +42,5 @@ EXPOSE 5000 WORKDIR /kavita -HEALTHCHECK --interval=30s --timeout=15s --start-period=30s --retries=3 CMD curl --fail http://localhost:5000 || exit 1 - -ENTRYPOINT [ "/bin/bash" ] +ENTRYPOINT [ "/bin/ash" ] CMD ["/entrypoint.sh"]