forked from mtusi2026/mtusi2026lab4
feat(lab4): private S3 attachments and safe storage reconciliation
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
FROM python:3.12.10-slim
|
||||
WORKDIR /app
|
||||
COPY requirements.txt requirements-dev.txt ./
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends make \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& pip install --no-cache-dir -r requirements.txt -r requirements-dev.txt \
|
||||
&& useradd -u 10001 -m app
|
||||
COPY . .
|
||||
USER app
|
||||
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
||||
CMD ["uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "8080", "--timeout-keep-alive", "5", "--no-access-log"]
|
||||
Reference in New Issue
Block a user