-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerFile
More file actions
32 lines (23 loc) · 845 Bytes
/
Copy pathDockerFile
File metadata and controls
32 lines (23 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.10-slim
LABEL maintainer="T-GLASS Team"
LABEL version="19.1"
WORKDIR /app
# Установка системных зависимостей
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# Копирование и установка зависимостей
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Проверка установки
RUN pip list
# Копирование всего проекта (включая папку tradernet)
COPY . .
# Создание директорий
RUN mkdir -p /data/logs
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:80/health || exit 1
# Запуск
CMD ["sh", "/app/start.sh"]