docker-healthchecks/Dockerfile
Jeffrey C. Ollie 5773c51131
All checks were successful
continuous-integration/drone/push Build is passing
update pip
2021-11-10 12:15:45 -06:00

24 lines
673 B
Docker

FROM python:3.9
ARG VERSION
ENV PYTHONUNBUFFERED=1
WORKDIR /opt/healthchecks
RUN useradd --system hc && \
git clone --depth 1 --branch v${VERSION} https://github.com/healthchecks/healthchecks.git /opt/healthchecks && \
pip install --no-cache-dir pip && \
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