2017-06-01 19:48:00 +02:00
|
|
|
FROM php:7.1-alpine
|
2016-08-05 15:10:28 +02:00
|
|
|
|
|
|
|
RUN apk update && \
|
|
|
|
apk add graphviz ttf-dejavu && \
|
|
|
|
rm -rf \
|
|
|
|
/var/cache/apk/* \
|
|
|
|
/tmp/*
|
|
|
|
|
|
|
|
COPY bin/ /dcv/bin
|
|
|
|
COPY src/ /dcv/src
|
|
|
|
COPY vendor/ /dcv/vendor
|
|
|
|
|
2016-08-09 16:41:17 +02:00
|
|
|
RUN chmod +x /dcv/bin/dcv
|
|
|
|
|
2016-08-05 15:10:28 +02:00
|
|
|
RUN addgroup dcv && \
|
|
|
|
adduser -D -G dcv -s /bin/bash -g "docker-compose-viz" -h /input dcv
|
|
|
|
|
|
|
|
USER dcv
|
|
|
|
VOLUME /input
|
|
|
|
WORKDIR /input
|
|
|
|
|
2017-06-30 09:40:14 +02:00
|
|
|
ENTRYPOINT ["/dcv/bin/entry_script.sh"]
|
2016-08-05 15:10:28 +02:00
|
|
|
CMD ["render", "-m", "image", "-f"]
|