You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
648 B

  1. ARG PYTHON_VERSION="3.8.6"
  2. FROM python:${PYTHON_VERSION}-slim-buster
  3. CMD ["python3"]
  4. WORKDIR /backend
  5. ENV PYTHONDONTWRITEBYTECODE 1
  6. ENV PYTHONUNBUFFERED 1
  7. COPY ./backend/ /backend/
  8. COPY ./Pipfile* /backend/
  9. # hadolint ignore=DL3013
  10. RUN apt-get update \
  11. && apt-get install -y --no-install-recommends \
  12. netcat=1.* \
  13. libpq-dev=11.* \
  14. unixodbc-dev=2.* \
  15. g++=4:* \
  16. && pip install --no-cache-dir pipenv==2020.11.15 \
  17. && pipenv install --system --deploy \
  18. && pip uninstall -y pipenv virtualenv-clone virtualenv \
  19. && apt-get clean \
  20. && rm -rf /var/lib/apt/lists/*
  21. COPY tools/ /opt/bin/
  22. ENTRYPOINT [ "/opt/bin/prod-django.sh" ]