25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

29 satır
835 B

  1. # use latest python 3 alpine image.
  2. FROM python:3-alpine
  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.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