최초 프로젝트 업로드 (Script Auto Commit)
This commit is contained in:
35
Dockerfile
Normal file
35
Dockerfile
Normal file
@@ -0,0 +1,35 @@
|
||||
# Synology DSM용 MACD 알림 봇 Dockerfile
|
||||
FROM python:3.12-slim
|
||||
|
||||
# 필수 패키지 설치
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
libffi-dev \
|
||||
libssl-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 작업 디렉토리 생성 및 이동
|
||||
WORKDIR /app
|
||||
|
||||
# 소스 복사
|
||||
COPY . /app
|
||||
|
||||
# 파이썬 패키지 설치
|
||||
RUN pip install --no-cache-dir --upgrade pip \
|
||||
&& pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# 환경변수 예시 파일 복사 (필요시)
|
||||
# COPY .env.example .env
|
||||
|
||||
# 로그 폴더 생성
|
||||
RUN mkdir -p logs
|
||||
|
||||
# 기본 실행 명령
|
||||
CMD ["python", "main.py"]
|
||||
|
||||
# 포트 노출 (필요시)
|
||||
# EXPOSE 8000
|
||||
|
||||
# 시놀로지 DSM에서 빌드 예시:
|
||||
# docker build -t macd_alarm .
|
||||
# docker run --env-file .env -v $(pwd)/logs:/app/logs macd_alarm
|
||||
Reference in New Issue
Block a user