neptune/docker/Dockerfile

18 lines
465 B
Docker
Raw Normal View History

2022-07-29 21:22:22 +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
WORKDIR /code
COPY requirements.dev.txt /code/
2022-07-29 21:22:22 +00:00
RUN python -m venv /venv
RUN . /venv/bin/activate && pip install -r requirements.dev.txt
2022-09-05 06:20:30 +00:00
CMD . /venv/bin/activate && exec python manage.py runserver --nothreading 0.0.0.0:8000