forked from mtusi2026/mtusi2026lab4
ЛР 4: приватное S3-хранилище и вложения сообщений
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
FROM python:3.12.10-slim
|
||||
WORKDIR /srv
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY app app
|
||||
COPY contracts contracts
|
||||
COPY migrations migrations
|
||||
RUN useradd --uid 10001 --create-home api
|
||||
USER api
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--timeout-graceful-shutdown", "5"]
|
||||
Reference in New Issue
Block a user