feat: add Dockerfile for backend

This commit is contained in:
agatha 2024-03-31 22:17:12 -04:00
parent e3f8c58457
commit de7da85e7a

11
backend/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
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"]