feat: complete lab 7 for grade 4
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
sashadugina06
2026-12-04 13:55:32 +03:00
parent 20afc2c790
commit 11390b65fd
91 changed files with 10163 additions and 50 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM python:3.11.16-slim-bookworm@sha256:a36c24f9cbdf4fd0f52d67f0823eeac19c2028c637cecc392d97f980d4fec56b
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --no-cache-dir -r requirements.txt && python -m pip check \
&& useradd --uid 10001 --no-create-home --shell /usr/sbin/nologin appuser
COPY src/ ./src/
COPY scripts/uds_probe.py /app/uds_probe.py
COPY db/ ./db/
COPY contracts/openapi.json ./contracts/openapi.json
USER 10001:10001
STOPSIGNAL SIGTERM
CMD ["python", "-m", "uvicorn", "src.main:app", "--uds", "/run/api/api.sock", "--no-access-log", "--no-proxy-headers", "--timeout-graceful-shutdown", "5"]