Реализовано хранилище вложений для лабораторной 4

This commit is contained in:
2026-11-02 23:40:07 +03:00
parent ec540a1a72
commit b99ad646e8
77 changed files with 2300 additions and 52 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.12.8-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
AWS_EC2_METADATA_DISABLED=true
WORKDIR /app
COPY requirements-app.txt ./
RUN pip install --no-cache-dir -r requirements-app.txt
COPY app ./app
COPY migrations ./migrations
RUN useradd --create-home --uid 10001 appuser
USER appuser
EXPOSE 8080
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]