FROM python:3.11-slim # equivalent cd WORKDIR /app # Copy files from host to container image # ADD COPY requirements.txt . # Execute command inside image RUN pip install --no-cache-dir -r requirements.txt # Copy files from host to container image COPY app.py . # Metadata, port to expose when container is run (Docker run -P) EXPOSE 5000 # Command to run by default (docker run) # ENTRYPOINT ["nginx"] CMD ["python", "app.py"]