parkkyujin commited on
Commit
07292ea
ยท
verified ยท
1 Parent(s): 0d2d163

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -14,16 +14,16 @@ COPY requirements.txt ./
14
  # 2. requirements.txt์— ๋ช…์‹œ๋œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ค ๋จผ์ € ์„ค์น˜
15
  RUN pip3 install --no-cache-dir -r requirements.txt
16
 
17
- # 3. NumPy 2.0+ ์„ค์น˜ (์ž„๋ฒ ๋”ฉ ํŒŒ์ผ๊ณผ ํ˜ธํ™˜๋˜๋„๋ก)
 
 
 
18
  RUN pip3 install --no-cache-dir "numpy>=2.0.0"
19
 
20
- # 4. NumPy ์„ค์น˜ ๋ฐ ํ•ต์‹ฌ ๋ชจ๋“ˆ ์ž„ํฌํŠธ ํ™•์ธ
21
- RUN python -c "import numpy; print(f'NumPy version after final install: {numpy.__version__}'); \
22
- try: \
23
- import numpy._core; print('Successfully imported numpy._core'); \
24
- except ImportError: \
25
- import numpy.core; print('Using numpy.core fallback'); \
26
- print('NumPy installation verified')"
27
 
28
  # ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ ๋ฐ์ดํ„ฐ ํŒŒ์ผ ๋ณต์‚ฌ
29
  COPY streamlit_app.py ./
 
14
  # 2. requirements.txt์— ๋ช…์‹œ๋œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ค ๋จผ์ € ์„ค์น˜
15
  RUN pip3 install --no-cache-dir -r requirements.txt
16
 
17
+ # 3. Streamlit ์ตœ์‹  ๋ฒ„์ „์œผ๋กœ ์—…๊ทธ๋ ˆ์ด๋“œ (NumPy 2.0+ ํ˜ธํ™˜)
18
+ RUN pip3 install --no-cache-dir --upgrade streamlit
19
+
20
+ # 4. NumPy 2.0+ ์„ค์น˜ (์ž„๋ฒ ๋”ฉ ํŒŒ์ผ๊ณผ ํ˜ธํ™˜๋˜๋„๋ก)
21
  RUN pip3 install --no-cache-dir "numpy>=2.0.0"
22
 
23
+ # 5. NumPy ์„ค์น˜ ๋ฐ ํ•ต์‹ฌ ๋ชจ๋“ˆ ์ž„ํฌํŠธ ํ™•์ธ
24
+ RUN python -c "import numpy; print('NumPy version:', numpy.__version__)"
25
+ RUN python -c "import numpy._core; print('Successfully imported numpy._core')" || \
26
+ python -c "import numpy.core; print('Using numpy.core fallback')"
 
 
 
27
 
28
  # ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ ๋ฐ์ดํ„ฐ ํŒŒ์ผ ๋ณต์‚ฌ
29
  COPY streamlit_app.py ./