Files
thePlug/Dockerfile
T
reloia d5ea350598 initialize project
Docker setup for the server, postgres and redis
2026-04-11 18:02:14 +02:00

17 lines
320 B
Docker

FROM python:3.14-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY pyproject.toml ./
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir fastapi uvicorn
COPY src ./src
EXPOSE 8000
CMD ["fastapi", "run", "src/main.py", "--host", "0.0.0.0", "--port", "1367"]