Files
n3wt-school/Back-End/Dockerfile

16 lines
381 B
Docker

# Dockerfile
# The first instruction is what image we want to base our container on
# We Use an official Python runtime as a parent image
FROM python:3.12.7
WORKDIR /Back-End
# Allows docker to cache installed dependencies between builds
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
# Mounts the application code to the image
COPY . .
EXPOSE 8080