No Description

Dockerfile 882B

1234567891011121314151617181920212223
  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. curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
  10. echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \
  11. wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
  12. apt-get update && \
  13. apt-get install -yqq nodejs yarn && \
  14. npm install -g nodemon && \
  15. rm -rf /var/lib/apt/lists/*
  16. WORKDIR /code
  17. COPY requirements.txt /code/
  18. RUN --mount=type=cache,target=/root/.cache pip install -r requirements.txt
  19. COPY app /code/
  20. RUN chmod a+x server-entrypoint.sh
  21. RUN chmod a+x worker-entrypoint.sh