dltmdgus commited on
Commit
24b8a49
ยท
verified ยท
1 Parent(s): b0444a6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python 3.9 slim ์ด๋ฏธ์ง€ ๊ธฐ๋ฐ˜
2
+ FROM python:3.9-slim
3
+
4
+ # ์ž‘์—… ๋””๋ ‰ํ† ๋ฆฌ ์„ค์ •
5
+ WORKDIR /app
6
+
7
+ # ์‹œ์Šคํ…œ ํŒจํ‚ค์ง€ ์„ค์น˜ (osmnx, geopy ๋“ฑ์„ ์œ„ํ•œ ํ•„์ˆ˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ)
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ curl \
11
+ libglib2.0-0 \
12
+ libsm6 \
13
+ libxrender1 \
14
+ libxext6 \
15
+ git \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
+ # requirements.txt ๋ณต์‚ฌ ๋ฐ ์„ค์น˜
19
+ COPY requirements.txt ./
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # ์ „์ฒด ํŒŒ์ผ ๋ณต์‚ฌ
23
+ COPY . .
24
+
25
+ # Streamlit ์‹คํ–‰ (ํฌํŠธ ์ง€์ •)
26
+ EXPOSE 8501
27
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]