mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-28 04:55:58 +00:00
Merge pull request #1130 from MOZGIII/docker-fixes
Minor corrections to Dockerfile
This commit is contained in:
commit
368da723f1
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
**
|
@ -21,3 +21,7 @@ trim_trailing_whitespace = false
|
|||||||
|
|
||||||
[{pom.xml, *.yml}]
|
[{pom.xml, *.yml}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
||||||
|
[Dockerfile]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
24
Dockerfile
24
Dockerfile
@ -1,16 +1,26 @@
|
|||||||
FROM openjdk:17-alpine
|
FROM alpine:latest AS loader
|
||||||
|
|
||||||
ARG PLANTUML_VERSION=v1.2022.6
|
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"]
|
|
||||||
|
|
||||||
ENTRYPOINT ["java", "-jar", "/opt/plantuml.jar"]
|
ENTRYPOINT ["java", "-jar", "/opt/plantuml.jar"]
|
||||||
CMD ["-version"]
|
CMD ["-version"]
|
Loading…
Reference in New Issue
Block a user