2022-07-28 18:21:08 +00:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
FROM python:3
|
|
|
|
|
|
|
|
RUN useradd -d /code pathogen
|
|
|
|
RUN mkdir /code
|
|
|
|
RUN chown pathogen:pathogen /code
|
|
|
|
|
|
|
|
RUN mkdir /venv
|
|
|
|
RUN chown pathogen:pathogen /venv
|
|
|
|
|
|
|
|
USER pathogen
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
2022-09-07 06:20:30 +00:00
|
|
|
WORKDIR /code/legacy
|
|
|
|
COPY requirements.prod.txt /code/legacy
|
2022-07-28 18:21:08 +00:00
|
|
|
RUN python -m venv /venv
|
2022-09-07 06:20:30 +00:00
|
|
|
RUN . /venv/bin/activate && pip install -r /code/legacy/requirements.prod.txt
|
|
|
|
CMD . /venv/bin/activate && exec python /code/legacy/threshold
|