ЛР 7: безопасность, mTLS и OpenBao на оценку 3
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Skeleton contracts / contracts (pull_request) Blocked by required conditions
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
FROM python:3.13-slim@sha256:168d3a5d10f2152f8e8d77b6843ac82c22a846cfefeef7afdf9aa630404e82a7
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
RUN useradd --create-home --shell /bin/bash appuser
|
||||
|
||||
COPY app/ app/
|
||||
COPY schemas/ schemas/
|
||||
|
||||
COPY alembic.ini .
|
||||
COPY alembic/ alembic/
|
||||
RUN chown -R appuser:appuser /app/alembic
|
||||
COPY scripts/ /app/scripts/
|
||||
|
||||
USER appuser
|
||||
|
||||
EXPOSE 8443
|
||||
|
||||
CMD ["python", "-m", "app.serve_tls"]
|
||||
|
||||
Reference in New Issue
Block a user