forum-app/backend/Dockerfile

11 lines
214 B
Docker
Raw Normal View History

2024-04-01 02:17:12 +00:00
FROM python:bookworm
EXPOSE 8000
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY forum.py .
CMD ["uvicorn", "forum:app", "--log-level", "debug", "--host", "0.0.0.0"]