Реализовать lab2: PostgreSQL и постоянные Bearer-сессии
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM python:3.12.12-slim-bookworm
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN --mount=type=secret,id=proxy_ca \
|
||||
if [ -f /run/secrets/proxy_ca ]; then export PIP_CERT=/run/secrets/proxy_ca; fi; \
|
||||
pip install --no-cache-dir -r requirements.txt
|
||||
COPY src ./src
|
||||
COPY migrations ./migrations
|
||||
COPY contracts ./contracts
|
||||
RUN chmod -R a+rX /app && useradd --uid 10001 --create-home app
|
||||
USER app
|
||||
EXPOSE 8080
|
||||
CMD ["sh", "-c", "python src/migrate.py && exec gunicorn --chdir src --bind 0.0.0.0:8080 --workers 1 --threads 4 --timeout 30 --access-logfile - app:app"]
|
||||
Reference in New Issue
Block a user