1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-06-01 08:00:48 +00:00
plantuml-server/Dockerfile.jetty
Olaf Meeuwissen 31a42da6bb Support building behind a proxy
In order to use this functionality, you need to pass `--build-arg`
options for the `http_proxy`, `https_proxy` and `no_proxy` values
that are suitable for *your* build environment.

If not behind a proxy, simply don't pass any `*_proxy` build args.
2018-11-15 21:53:00 +09:00

23 lines
497 B
Docker

FROM maven:3-jdk-8 AS builder
COPY pom.xml /app/
COPY src /app/src/
WORKDIR /app
RUN mvn --batch-mode --define java.net.useSystemProxies=true package
########################################################################################
FROM jetty
MAINTAINER D.Ducatel
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei && \
apt-get clean
USER jetty
COPY --from=builder /app/target/plantuml.war /var/lib/jetty/webapps/ROOT.war