-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 708 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 708 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
FROM python:3.12-slim
# 시스템 폰트 설치 (telegram_view.py의 PIL 이미지 렌더링용)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
fonts-dejavu-core \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
# 타임존 설정 (스케줄러가 KST 기준으로 동작)
ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /app
# 의존성 먼저 설치 (캐시 활용)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 소스 복사
COPY main.py ./
COPY trading_bot/ ./trading_bot/
# 데이터/로그 디렉토리 생성
RUN mkdir -p data logs
CMD ["python", "main.py"]