ЛР 4: MinIO и вложения
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
FROM python:3.12.8-slim-bookworm
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
APP_HOST=0.0.0.0 \
|
||||
APP_PORT=8080
|
||||
|
||||
WORKDIR /app
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt \
|
||||
&& adduser --disabled-password --gecos "" app
|
||||
COPY app.py /app/app.py
|
||||
COPY migrations /app/migrations
|
||||
USER app
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["python", "/app/app.py"]
|
||||
Reference in New Issue
Block a user