Dockerfile 323 B

1234567891011121314
  1. FROM python:3.11.8-slim-bullseye
  2. ENV PYTHONUNBUFFERED True
  3. ENV APP_HOME /app
  4. WORKDIR $APP_HOME
  5. COPY . ./
  6. ENV PORT 8000
  7. RUN pip install --no-cache-dir -r requirements.txt
  8. # As an example here we're running the web service with one worker on uvicorn.
  9. CMD exec uvicorn server:app --host 0.0.0.0 --port ${PORT} --workers 1