commit bce6c8d3c911f3ac944ec1dfee8b6d87305ea59b Author: RealStickman Date: Tue Aug 30 18:31:04 2022 +0200 Initial with upstream container using Ubuntu diff --git a/alpine.dockerfile b/alpine.dockerfile new file mode 100644 index 0000000..c8e0905 --- /dev/null +++ b/alpine.dockerfile @@ -0,0 +1,35 @@ +#This Dockerfile creates a build for all architectures + +#Image that copies in the files and passes them to the main image +FROM ubuntu:focal AS copytask + +ARG TARGETPLATFORM + +#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 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/* + +COPY entrypoint.sh /entrypoint.sh + +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" ] +CMD ["/entrypoint.sh"]