FROM python:3.10 WORKDIR /usr/src/app # Install requirements before copying the rest of data to make use of docker's cache layers COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt # Copy files from host to workdir in container COPY . . CMD ["python", "src/main.py"]