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.
 
 
 
 
 

28 linhas
843 B

  1. # use latest python alpine image.
  2. FROM python:3.12.7-alpine3.20
  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 xdg-utils
  6. # install go package.
  7. RUN go install github.com/mingrammer/round@latest
  8. # install fonts
  9. RUN curl -O https://noto-website-2.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