mirror of
https://github.com/TronoSfera/backup_service.git
synced 2026-05-18 10:03:32 +03:00
18 lines
No EOL
425 B
Docker
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"] |