yig/franklincce/Dockerfile

21 lines
374 B
Docker
Raw Normal View History

2024-06-21 03:02:03 -05:00
FROM python:3.11.4-slim-buster
# set work directory
WORKDIR /usr/src/app
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# install dependencies
RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# copy project
COPY . .
RUN mkdir /var/www/static -p
RUN python3 manage.py collectstatic --noinput