Нет описания

Dockerfile 1.2KB

123456789101112131415161718192021222324252627282930
  1. # syntax=docker/dockerfile:1
  2. FROM python:3 as base
  3. ENV PYTHONDONTWRITEBYTECODE=1
  4. ENV PYTHONUNBUFFERED=1
  5. RUN apt-get update && apt-get install apt-transport-https
  6. RUN apt-get install -y libjpeg62 libjpeg62-turbo-dev zlib1g-dev gettext entr poppler-utils gettext xfonts-thai vim
  7. RUN wget ftp://ftp.psu.ac.th/pub/thaifonts/sipa-fonts/*ttf -P /usr/share/fonts/truetype/thai
  8. COPY fonts/*ttf /usr/share/fonts/truetype/thai/
  9. RUN \
  10. echo "Installing Node and Yarn" && \
  11. echo "deb https://deb.nodesource.com/node_8.x jessie main" > /etc/apt/sources.list.d/nodesource.list && \
  12. wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
  13. echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \
  14. wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
  15. apt-get update && \
  16. apt-get install -yqq nodejs yarn npm && \
  17. npm install -g nodemon mjml && \
  18. rm -rf /var/lib/apt/lists/*
  19. FROM base as install_package
  20. WORKDIR /code
  21. COPY requirements.txt /code/
  22. RUN pip install -r requirements.txt
  23. COPY app /code/
  24. #RUN chmod a+x server-entrypoint.sh
  25. #RUN chmod a+x worker-entrypoint.sh