<filename>Dockerfile
FROM ubuntu:20.04
RUN apt-get update -y && apt-get install python3-pip python3-dev -y

# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt

WORKDIR /app
RUN pip3 install -r requirements.txt

COPY . /app

ENTRYPOINT [ "python3" ]
CMD [ "main.py" ]