20 lines
539 B
Docker
20 lines
539 B
Docker
FROM alpine as source
|
|
|
|
RUN apk add git curl
|
|
RUN git clone https://github.com/ad1217/diagrams -b fix-stuff
|
|
RUN curl -L http://sourceforge.net/projects/plantuml/files/plantuml.jar/download -o diagrams/plantuml.jar
|
|
|
|
FROM python:3-alpine
|
|
|
|
COPY --from=source diagrams diagrams
|
|
WORKDIR diagrams
|
|
|
|
# TODO: missing mscgen
|
|
RUN apk add graphviz openjdk8-jre
|
|
RUN pip3 install -r dgs/requirements.txt gunicorn
|
|
|
|
VOLUME /root/.diagrams
|
|
|
|
env SCRIPT_NAME=/diagrams
|
|
CMD ["gunicorn", "dgs.webserver:app", "--bind", "0.0.0.0:5003", "--forwarded-allow-ips=*"]
|