forum-app/backend/Dockerfile

11 lines
204 B
Docker

FROM python:alpine
EXPOSE 8000
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--log-level", "debug", "--host", "0.0.0.0"]