update Dockerfile

This commit is contained in:
agatha 2024-04-05 19:21:39 -04:00
parent 05104667c7
commit 5fd50065cb
2 changed files with 7 additions and 2 deletions

5
backend/.dockerignore Normal file
View File

@ -0,0 +1,5 @@
__pycache__/
*.pyc
README.md
forum.db
.gitignore

View File

@ -7,5 +7,5 @@ WORKDIR /app
COPY requirements.txt . COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
COPY forum.py . COPY . .
CMD ["uvicorn", "forum:app", "--log-level", "debug", "--host", "0.0.0.0"] CMD ["uvicorn", "main:app", "--log-level", "debug", "--host", "0.0.0.0"]