Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
21 |
-
RUN python -c "import numpy; print(
|
22 |
-
|
23 |
-
|
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 ./
|