Сделана лаба 2
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-16 21:11:01 +03:00
parent 65003b6119
commit 76851cc2f5
8 changed files with 666 additions and 24 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.13-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --no-cache-dir -r requirements.txt
COPY app.py ./
COPY migrations ./migrations/
RUN useradd --create-home --shell /usr/sbin/nologin appuser && \
chown -R appuser:appuser /app
USER appuser
EXPOSE 8080
CMD ["python", "app.py"]