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.
22 lines
503 B
22 lines
503 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
|
|
|
|
# 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
|