No Description

Dockerfile 1.0KB

123456789101112131415161718192021222324
  1. # syntax=docker/dockerfile:1
  2. FROM python:3
  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
  7. RUN \
  8. echo "Installing Node and Yarn" && \
  9. echo "deb https://deb.nodesource.com/node_8.x jessie main" > /etc/apt/sources.list.d/nodesource.list && \
  10. wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
  11. echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \
  12. wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
  13. apt-get update && \
  14. apt-get install -yqq nodejs yarn npm && \
  15. npm install -g nodemon && \
  16. rm -rf /var/lib/apt/lists/*
  17. WORKDIR /code
  18. COPY requirements.txt /code/
  19. RUN --mount=type=cache,target=/root/.cache pip install -r requirements.txt
  20. COPY app /code/
  21. RUN chmod a+x server-entrypoint.sh
  22. RUN chmod a+x worker-entrypoint.sh