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"]