21 lines
615 B
Text
21 lines
615 B
Text
|
FROM python:3.9
|
||
|
|
||
|
ENV PYTHONUNBUFFERED=1
|
||
|
WORKDIR /opt/healthchecks
|
||
|
|
||
|
RUN useradd --system hc && \
|
||
|
git clone --depth 1 --branch v1.19.0 https://github.com/healthchecks/healthchecks.git /opt/healthchecks && \
|
||
|
pip install --no-cache-dir -r /opt/healthchecks/requirements.txt && \
|
||
|
pip install --no-cache-dir uwsgi && \
|
||
|
rm -f /opt/healthchecks/hc/local_settings.py && \
|
||
|
DEBUG=False SECRET_KEY=build-key ./manage.py collectstatic --noinput && \
|
||
|
DEBUG=False SECRET_KEY=build-key ./manage.py compress
|
||
|
|
||
|
COPY uwsgi.ini /opt/healthchecks/docker/uwsgi.ini
|
||
|
|
||
|
USER hc
|
||
|
|
||
|
VOLUME "/data"
|
||
|
EXPOSE 2525
|
||
|
EXPOSE 8000
|