1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 08:48:54 +00:00
plantuml-server/Dockerfile.jetty
translucens 73739b7e85
revert builder's base image to based on OpenJDK8 (non-headless)
headless OpenJDK does not refer `http_proxy` environment variable, so build image inside proxy will fail.
resolves #98
2019-04-28 00:33:47 +09:00

26 lines
601 B
Docker

FROM maven:3.6-jdk-8 AS builderjetty
COPY pom.xml /app/
COPY src /app/src/
WORKDIR /app
RUN mvn --batch-mode --define java.net.useSystemProxies=true package
########################################################################################
FROM jetty:9.4-jre8
MAINTAINER D.Ducatel
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends graphviz fonts-noto-cjk && \
apt-get clean && rm -rf /var/lib/apt/lists/*
USER jetty
ENV GRAPHVIZ_DOT=/usr/bin/dot
ARG BASE_URL=ROOT
COPY --from=builderjetty /app/target/plantuml.war /var/lib/jetty/webapps/$BASE_URL.war