Add Platform container deployment

This commit is contained in:
2026-08-15 20:32:44 +03:00
parent adff766f87
commit cda86ded5f
4 changed files with 121 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:3.12-slim
WORKDIR /app
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
COPY platform/backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY platform/backend/ .
RUN useradd --create-home --uid 1001 appuser \
&& mkdir -p /data \
&& chown -R appuser:appuser /app /data
USER appuser
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]