alainivars/drf-microservice

View on GitHub
Dockerfile.drf-ms-sqlite

Summary

Maintainability
Test Coverage
# The doc: https://docs.docker.com/engine/reference/builder/#usage
# Dockerfile.drf-ms-sqlite

FROM python:3.10.0b4

# The environment variable ensures that the python output is set straight
# to the terminal with out buffering it first
ENV PYTHONUNBUFFERED 1

# create root directory for our project in the container
RUN mkdir /drf-microservice

# Set the working directory to /drf-microservice
WORKDIR /drf-microservice

# Copy the current directory contents into the container at /drf-microservice
ADD . /drf-microservice/

# Install any needed packages specified in requirements.txt
RUN pip install -r requirements/docker-base.txt