NitakuShop/Dockerfile

21 lines
371 B
Docker

# Dockerfile
# Pull the base image
FROM python:3.10
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /code
# Install dependencies
COPY requirements.txt /code/
RUN pip install -r requirements.txt
# Copy project
COPY . /code/
# Run migrations
RUN python manage.py makemigrations
RUN python manage.py migrate