Joshua Sundance Bailey
working
991fc4e
raw
history blame
379 Bytes
FROM python:3.11-slim-buster
RUN adduser --uid 1001 --disabled-password --gecos '' appuser
USER 1001
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PATH="/home/appuser/.local/bin:$PATH"
RUN pip install --user --upgrade pip
COPY ./requirements.txt /home/appuser/app/requirements.txt
RUN pip install --user -r /home/appuser/app/requirements.txt
CMD ["/bin/bash"]