backup_service/server/Dockerfile
2026-01-19 10:27:20 +03:00

18 lines
No EOL
425 B
Docker

FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
# Use gunicorn or uvicorn for FastAPI
# Run the FastAPI application as a module so that relative imports work
CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--port", "8000"]