awesome-compose/django-postgres/Dockerfile

16 lines
286 B
Docker
Raw Normal View History

# Pull base image
FROM python:3.8
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /code
# Install dependencies
COPY requirements.txt /code/
RUN pip3 install -r requirements.txt --no-cache-dir
# Copy project
COPY . /code/