Dockerfile update

This commit is contained in:
2025-07-21 17:41:38 +09:00
parent 3e9271517e
commit 594bcd0897

61
build/Dockerfile Normal file
View File

@ -0,0 +1,61 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# 시스템 패키지 설치
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
gcc \
libsqlite3-dev \
libssl-dev \
libffi-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libncurses5-dev \
libgdbm-dev \
liblzma-dev \
libtk8.6 \
tk8.6-dev \
tcl8.6-dev \
wget \
curl \
unzip \
git \
&& rm -rf /var/lib/apt/lists/*
# 작업 디렉토리
WORKDIR /app
# 애플리케이션 소스 복사
COPY ../app ./app
COPY ../conf ./conf
COPY ../lib ./lib
COPY ../data ./data
COPY requirements.txt .
# tkcalendar, customtkinter GUI 라이브러리 의존성
RUN pip install --no-cache-dir \
tkcalendar \
customtkinter
# pip 패키지 설치 (필요한 모든 모듈 명시)
RUN pip install --no-cache-dir \
sqlalchemy \
pandas \
prophet \
statsmodels \
scikit-learn \
numpy \
requests \
pyyaml \
google-analytics-data \
lxml \
mysql-connector-python \
pymysql
# 포트 오픈
EXPOSE 5000
# 기본 실행 명령
CMD ["python3", "app/app.py"]