FROM ubuntu:20.04 RUN apt-get update -y && \ apt-get install -y python3-pip python3 # We copy just the requirements.txt first to leverage Docker cache COPY ./requirements.txt /app/requirements.txt WORKDIR /app RUN pip install -r requirements.txt COPY . /app ENTRYPOINT [ "/usr/bin/python3" ] CMD [ "app/main.py" ]