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.

22 lines
495 B

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