Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Cantaloupe on Docker
Commits
a70bcabb
Verified
Commit
a70bcabb
authored
Apr 28, 2020
by
Sebastian Schüpbach
Browse files
compact Docker image
parent
eb9e2684
Pipeline
#8539
passed with stage
in 2 minutes and 43 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
a70bcabb
...
@@ -7,22 +7,24 @@ RUN apt-get -qq update && \
...
@@ -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
&&
\
RUN
wget
-q
https://github.com/cantaloupe-project/cantaloupe/releases/download/v
${
VERSION
}
/cantaloupe-
${
VERSION
}
.zip
-O
temp.zip
&&
\
unzip temp.zip
&&
\
unzip temp.zip
&&
\
mv
cantaloupe-
${
VERSION
}
cantaloupe
&&
\
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
-r
cantaloupe/deps
&&
\
rm
cantaloupe/cantaloupe.properties.sample
rm
cantaloupe/cantaloupe.properties.sample
ADD
./cantaloupe.properties /cantaloupe/cantaloupe.properties
ADD
./cantaloupe.properties /cantaloupe/cantaloupe.properties
FROM
openjdk:11-jre-slim
FROM
openjdk:11-jre-slim
ENTRYPOINT
["/home/cantaloupe/run.sh", "4.1.5"]
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"]
ARG
HTTP_PORT=8182
ARG
HTTP_PORT=8182
HEALTHCHECK
--start-period=30s CMD curl -sf 0.0.0.0:${HTTP_PORT} -o /dev/null || exit 1
HEALTHCHECK
--start-period=30s CMD curl -sf 0.0.0.0:${HTTP_PORT} -o /dev/null || exit 1
RUN
useradd cantaloupe
RUN
useradd cantaloupe
WORKDIR
/home/cantaloupe
WORKDIR
/home/cantaloupe
VOLUME
["/home/cantaloupe/images"]
VOLUME
["/home/cantaloupe/images"]
COPY
--chown=cantaloupe --from=build /cantaloupe/ app/
COPY
--chown=cantaloupe --from=build /cantaloupe/ app/
COPY
--from=build /tmp/lib/* /usr/lib/
ADD
--chown=cantaloupe ./run.sh run.sh
ADD
--chown=cantaloupe ./run.sh run.sh
RUN
apt-get
-qq
update
&&
\
RUN
apt-get
-qq
update
&&
\
apt-get
-qq
install
curl
&&
\
apt-get
-qq
install
curl
&&
\
apt-get clean
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
USER
cantaloupe
USER
cantaloupe
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment