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.

23 lines
530 B

  1. FROM python:3.9
  2. RUN useradd --system hc
  3. ENV PYTHONUNBUFFERED=1
  4. ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
  5. WORKDIR /opt/healthchecks
  6. COPY requirements.txt /tmp
  7. RUN \
  8. pip install --no-cache-dir -r /tmp/requirements.txt && \
  9. pip install uwsgi
  10. COPY . /opt/healthchecks/
  11. RUN \
  12. rm -f /opt/healthchecks/hc/local_settings.py && \
  13. DEBUG=False SECRET_KEY=build-key ./manage.py collectstatic --noinput && \
  14. DEBUG=False SECRET_KEY=build-key ./manage.py compress
  15. USER hc
  16. CMD [ "uwsgi", "/opt/healthchecks/docker/uwsgi.ini"]