feat: add Dockerfile for backend
This commit is contained in:
parent
e3f8c58457
commit
de7da85e7a
11
backend/Dockerfile
Normal file
11
backend/Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user