awesome-compose/django-postgres/Dockerfile
stuffinator b72a1bb9f7 Django-Postgres application template created (#178)
In this template is shown how to connect Djnago and PostgreSQL using docker-compose servise. 

Signed-off-by: Ulugbek Muslitdinov <ulugbekmuslitdinov@gmail.com>
2021-11-20 16:52:16 +05:00

16 lines
286 B
Docker

# 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/