Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

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

compact Docker image

parent eb9e2684
Pipeline #8539 passed with stage
in 2 minutes and 43 seconds
......@@ -7,22 +7,24 @@ RUN apt-get -qq update && \
RUN wget -q https://github.com/cantaloupe-project/cantaloupe/releases/download/v${VERSION}/cantaloupe-${VERSION}.zip -O temp.zip && \
unzip temp.zip && \
mv cantaloupe-${VERSION} cantaloupe && \
mv cantaloupe/deps/Linux-x86-64/lib cantaloupe/lib && \
mv cantaloupe/deps/Linux-x86-64/lib /tmp/lib && \
rm -r cantaloupe/deps && \
rm cantaloupe/cantaloupe.properties.sample
ADD ./cantaloupe.properties /cantaloupe/cantaloupe.properties
FROM openjdk:11-jre-slim
ENTRYPOINT ["/home/cantaloupe/run.sh", "4.1.5"]
CMD ["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties","-Djava.library.path=/home/cantaloupe/app/lib", "-Xmx2g"]
CMD ["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties", "-Xmx2g"]
HEALTHCHECK --start-period=30s CMD curl -sf${HTTP_PORT} -o /dev/null || exit 1
RUN useradd cantaloupe
WORKDIR /home/cantaloupe
VOLUME ["/home/cantaloupe/images"]
COPY --chown=cantaloupe --from=build /cantaloupe/ app/
COPY --from=build /tmp/lib/* /usr/lib/
ADD --chown=cantaloupe ./run.sh run.sh
RUN apt-get -qq update && \
apt-get -qq install curl && \
apt-get clean
apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER cantaloupe
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