Put in order · Python course · Module 6: Async and FastAPI
Dockerfile FastAPI
Arrange the Dockerfile for a FastAPI application:
Items to put in order
- COPY . .
- RUN pip install -r requirements.txt
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0"]
- COPY requirements.txt .
- WORKDIR /app
- FROM python:3.11-slim
You can check the correct answer by solving this task in the CodeWorlds game.