docker-healthchecks/Dockerfile

25 lines
684 B
Text
Raw Normal View History

2022-01-08 17:59:42 -06:00
FROM python:3.10
2021-02-17 23:52:03 -06:00
2021-08-06 23:48:34 -05:00
ARG VERSION
2021-02-17 23:52:03 -06:00
ENV PYTHONUNBUFFERED=1
2021-08-06 23:48:34 -05:00
2021-02-17 23:52:03 -06:00
WORKDIR /opt/healthchecks
RUN useradd --system hc && \
2021-08-06 23:48:34 -05:00
git clone --depth 1 --branch v${VERSION} https://github.com/healthchecks/healthchecks.git /opt/healthchecks && \
2021-11-10 12:25:25 -06:00
pip install --no-cache-dir --upgrade pip && \
2021-02-17 23:52:03 -06:00
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