Verified Commit 8213d467 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

optimize Dockerfile

parent 22ab0fac
......@@ -17,14 +17,14 @@ ENTRYPOINT ["/home/cantaloupe/run.sh", "4.1.5"]
CMD ["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties", "-Xmx2g"]
ARG HTTP_PORT=8182
HEALTHCHECK --start-period=30s CMD curl -sf 0.0.0.0:${HTTP_PORT} -o /dev/null || exit 1
RUN useradd cantaloupe
WORKDIR /home/cantaloupe
VOLUME ["/home/cantaloupe/images"]
COPY --chown=cantaloupe --from=build /cantaloupe/ app/
RUN useradd cantaloupe && mkdir -p /home/cantaloupe/.cache/cantaloupe && chown -R cantaloupe: /home/cantaloupe/.cache
COPY --chown=cantaloupe --from=build /cantaloupe/ /home/cantaloupe/app/
COPY --from=build /tmp/lib/* /usr/lib/
ADD --chown=cantaloupe ./run.sh run.sh
ADD --chown=cantaloupe ./run.sh /home/cantaloupe/run.sh
RUN apt-get -qq update && \
apt-get -qq install curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER cantaloupe
WORKDIR /home/cantaloupe
VOLUME ["/home/cantaloupe/images"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment