dltmdgus commited on
Commit
fbeac53
·
verified ·
1 Parent(s): 84a8019

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 1. Python 3.9 이미지를 기반으로 사용
2
+ FROM python:3.9
3
+
4
+ # 2. 작업 디렉토리 설정
5
+ WORKDIR /app
6
+
7
+ # 3. 의존성 파일 복사
8
+ COPY requirements.txt /app/
9
+
10
+ # 4. 의존성 설치
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # 5. 애플리케이션 코드 복사
14
+ COPY . /app/
15
+
16
+ # 6. 포트 설정 (Streamlit 기본 포트는 8501)
17
+ EXPOSE 8501
18
+
19
+ # 7. Streamlit 애플리케이션 실행
20
+ CMD ["streamlit", "run", "main/app.py"]