forked from mtusi2026/mtusi2026lab3
Выполнить лабораторную 3: балансировка, отказы и исследование масштабирования
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
FROM python:3.11.11-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
APP_HOST=0.0.0.0 \
|
||||
APP_PORT=8080 \
|
||||
DATABASE_URL=postgresql://messenger:messenger@db:5432/messenger \
|
||||
SESSION_TTL_SECONDS=3600
|
||||
|
||||
WORKDIR /app
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /app/requirements.txt
|
||||
ARG APP_REVISION=lab3-v2
|
||||
ENV APP_REVISION=$APP_REVISION
|
||||
COPY app.py migrate.py /app/
|
||||
COPY migrations /app/migrations
|
||||
COPY scripts /app/scripts
|
||||
COPY tests/client.py /app/tests/client.py
|
||||
COPY contracts /app/contracts
|
||||
COPY lab.json /app/lab.json
|
||||
EXPOSE 8080
|
||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||
Reference in New Issue
Block a user