first commit

This commit is contained in:
2026-08-17 12:18:05 +07:00
commit 261440c694
12 changed files with 576 additions and 0 deletions

20
deploy/backend/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
RUN addgroup --gid 10001 --system app && adduser --uid 10001 --system --ingroup app app
COPY backend/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY backend/ ./
USER app
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers", "--forwarded-allow-ips", "*"]