mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-24 22:07:33 +00:00
Split loader and runtime images
This commit is contained in:
parent
1398d85806
commit
250af80717
21
Dockerfile
21
Dockerfile
@ -1,13 +1,24 @@
|
|||||||
FROM openjdk:17-alpine
|
FROM alpine:latest AS loader
|
||||||
|
|
||||||
ARG PLANTUML_VERSION
|
ARG PLANTUML_VERSION
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
wget \
|
||||||
|
ca-certificates
|
||||||
|
|
||||||
|
RUN wget \
|
||||||
|
"https://github.com/plantuml/plantuml/releases/download/${PLANTUML_VERSION}/plantuml-${PLANTUML_VERSION#?}.jar" \
|
||||||
|
-O /opt/plantuml.jar
|
||||||
|
|
||||||
|
FROM openjdk:17-alpine
|
||||||
|
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
|
|
||||||
RUN \
|
RUN apk add --no-cache \
|
||||||
apk add --no-cache graphviz wget ca-certificates ttf-dejavu && \
|
graphviz \
|
||||||
wget "https://github.com/plantuml/plantuml/releases/download/${PLANTUML_VERSION}/plantuml-${PLANTUML_VERSION#?}.jar" -O /opt/plantuml.jar && \
|
ttf-dejavu
|
||||||
apk del wget ca-certificates
|
|
||||||
|
COPY --from=loader /opt/plantuml.jar /opt/plantuml.jar
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
|
Loading…
Reference in New Issue
Block a user