docker-compose pre prod (non final)

This commit is contained in:
tim
2026-07-01 20:05:40 +02:00
parent fbe0c3aa18
commit 4f0b706c28
6 changed files with 49 additions and 4 deletions
+10 -3
View File
@@ -1,16 +1,23 @@
FROM python:3.14-slim
WORKDIR /app
# Keeps Python from generating .pyc files and turns off output buffering.
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Backend code only -- the frontend has its own image (frontend/Dockerfile).
COPY bridzik.py app.py ./
COPY api ./api
COPY db ./db
COPY tests ./tests
RUN useradd --create-home --uid 1000 appuser \
&& chown -R appuser:appuser /app
USER appuser
EXPOSE 5000
# Serve the ASGI Socket.IO app with uvicorn.
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "5000"]