b72a1bb9f7
In this template is shown how to connect Djnago and PostgreSQL using docker-compose servise. Signed-off-by: Ulugbek Muslitdinov <ulugbekmuslitdinov@gmail.com>
16 lines
286 B
Docker
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/ |