-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
26 lines (20 loc) · 1014 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# https://hub.docker.com/_/eclipse-temurin?tab=description&page=2&name=17
FROM eclipse-temurin:17.0.5_8-jdk-jammy
ARG PLANTUML_SERVICE_VERSION
ARG PLANTUML_SERVICE_JAR_URL="https://github.com/bitjourney/plantuml-service/releases/download/v${PLANTUML_SERVICE_VERSION}/plantuml-service.jar"
ARG PLANTUML_SERVICE_BIN_DIR="/home/app/plantuml-service/bin"
ARG PLANTUML_SERVICE_PATH="${PLANTUML_SERVICE_BIN_DIR}/plantuml-service.jar"
RUN echo "${PLANTUML_SERVICE_VERSION?:--build-arg PLANTUML_SERVICE_VERSION=version is mandatory}"
USER root
RUN useradd --create-home app \
&& apt-get update -qq \
&& apt-get upgrade -y \
&& apt-get install -y graphviz fonts-takao curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p ${PLANTUML_SERVICE_BIN_DIR} \
&& curl -L ${PLANTUML_SERVICE_JAR_URL} -o ${PLANTUML_SERVICE_PATH} \
&& chown -R app ${PLANTUML_SERVICE_BIN_DIR}
USER app
ENTRYPOINT ["/opt/java/openjdk/bin/java"]
CMD ["-jar", "/home/app/plantuml-service/bin/plantuml-service.jar"]