mirror of https://github.com/mingrammer/diagrams
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
640 B
27 lines
640 B
# use latest python alphine image.
|
|
FROM python:rc-alpine3.12
|
|
|
|
# install system dependencies.
|
|
RUN apk update && apk add --no-cache \
|
|
gcc libc-dev g++ graphviz git bash go imagemagick inkscape
|
|
|
|
# install go package.
|
|
RUN go get github.com/mingrammer/round
|
|
|
|
# install fonts
|
|
RUN apk --no-cache add msttcorefonts-installer fontconfig && \
|
|
update-ms-fonts && \
|
|
fc-cache -f
|
|
|
|
# add go bin to path.
|
|
ENV PATH "$PATH:/root/go/bin"
|
|
|
|
# project directory.
|
|
WORKDIR /usr/src/diagrams
|
|
|
|
# Copy the rest of your app's source code from your host to your image filesystem.
|
|
COPY . .
|
|
|
|
# install python requirements.
|
|
RUN pip install black graphviz jinja2
|