forked from artipie/artipie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (17 loc) · 901 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM openjdk:17-oracle
ARG JAR_FILE
ENV JVM_OPTS=""
LABEL description="Artipie binary repository management tool"
LABEL maintainer="[email protected]"
LABEL maintainer="[email protected]"
RUN groupadd -r -g 2020 artipie && \
adduser -M -r -g artipie -u 2021 -s /sbin/nologin artipie && \
mkdir -p /etc/artipie /usr/lib/artipie /var/artipie && \
chown artipie:artipie -R /etc/artipie /usr/lib/artipie /var/artipie
USER 2021:2020
COPY target/dependency /usr/lib/artipie/lib
COPY target/${JAR_FILE} /usr/lib/artipie/artipie.jar
VOLUME /var/artipie /etc/artipie
WORKDIR /var/artipie
EXPOSE 8080 8086
CMD [ "sh", "-c", "java $JVM_ARGS --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED -cp /usr/lib/artipie/artipie.jar:/usr/lib/artipie/lib/* com.artipie.VertxMain --config-file=/etc/artipie/artipie.yml --port=8080 --api-port=8086" ]