wedding-site-backend/wedding_site/Dockerfile

19 lines
354 B
Docker
Raw Permalink Normal View History

2024-02-18 14:09:12 +00:00
# pull official base image
FROM python:3.11.4-slim-buster
# 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
RUN mkdir staticfiles
2024-02-18 14:25:20 +00:00
RUN mkdir mediafiles
2024-02-18 21:27:08 +00:00
ADD ./mediafiles /mediafiles
2024-02-18 14:09:12 +00:00
# copy project
COPY . .