Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Dockerfile 818 B

12345678910111213141516171819202122232425262728
  1. # use latest python alphine image.
  2. FROM python:rc-alpine3.12
  3. # install system dependencies.
  4. RUN apk update && apk add --no-cache \
  5. gcc libc-dev g++ graphviz git bash go imagemagick inkscape ttf-opensans curl fontconfig
  6. # install go package.
  7. RUN go get github.com/mingrammer/round
  8. # install fonts
  9. RUN curl -O https://noto-website.storage.googleapis.com/pkgs/NotoSansCJKjp-hinted.zip \
  10. && mkdir -p /usr/share/fonts/NotoSansCJKjp \
  11. && unzip NotoSansCJKjp-hinted.zip -d /usr/share/fonts/NotoSansCJKjp/ \
  12. && rm NotoSansCJKjp-hinted.zip \
  13. && fc-cache -fv
  14. # add go bin to path.
  15. ENV PATH "$PATH:/root/go/bin"
  16. # project directory.
  17. WORKDIR /usr/src/diagrams
  18. # Copy the rest of your app's source code from your host to your image filesystem.
  19. COPY . .
  20. # install python requirements.
  21. RUN pip install black graphviz jinja2