From de7da85e7af6e0ce05e1c4ae183e95366a7c9860 Mon Sep 17 00:00:00 2001 From: agatha Date: Sun, 31 Mar 2024 22:17:12 -0400 Subject: [PATCH] feat: add Dockerfile for backend --- backend/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 backend/Dockerfile diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..ea935a0 --- /dev/null +++ b/backend/Dockerfile @@ -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"] \ No newline at end of file