Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
@@ -14,21 +14,15 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
# 1. requirements.txt ๋ณต์ฌ (์ด ํ์ผ์๋ numpy ๊ด๋ จ ๋ผ์ธ์ด ์์)
|
15 |
COPY requirements.txt ./
|
16 |
|
17 |
-
# 2.
|
18 |
-
RUN pip3 install --no-cache-dir \
|
19 |
-
"numpy>=2.0.0" \
|
20 |
-
"pandas>=2.0.0" \
|
21 |
-
"streamlit>=1.35.0"
|
22 |
-
|
23 |
-
# 3. ๋๋จธ์ง requirements.txt์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค ์ค์น
|
24 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
25 |
|
26 |
-
#
|
27 |
RUN mkdir -p /home/streamlit/.streamlit && \
|
28 |
chown -R streamlit:streamlit /home/streamlit/.streamlit && \
|
29 |
chown -R streamlit:streamlit /app
|
30 |
|
31 |
-
#
|
32 |
RUN python -c "import numpy; print('NumPy version:', numpy.__version__)"
|
33 |
RUN python -c "import pandas; print('Pandas version:', pandas.__version__)"
|
34 |
RUN python -c "import numpy._core; print('Successfully imported numpy._core')" || \
|
|
|
14 |
# 1. requirements.txt ๋ณต์ฌ (์ด ํ์ผ์๋ numpy ๊ด๋ จ ๋ผ์ธ์ด ์์)
|
15 |
COPY requirements.txt ./
|
16 |
|
17 |
+
# 2. requirements.txt์ ๋ช
์๋ ๋ชจ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
19 |
|
20 |
+
# 3. Streamlit ์ค์ ๋๋ ํ ๋ฆฌ ์์ฑ ๋ฐ ๊ถํ ์ค์
|
21 |
RUN mkdir -p /home/streamlit/.streamlit && \
|
22 |
chown -R streamlit:streamlit /home/streamlit/.streamlit && \
|
23 |
chown -R streamlit:streamlit /app
|
24 |
|
25 |
+
# 4. NumPy ๋ฐ Pandas ํธํ์ฑ ํ์ธ
|
26 |
RUN python -c "import numpy; print('NumPy version:', numpy.__version__)"
|
27 |
RUN python -c "import pandas; print('Pandas version:', pandas.__version__)"
|
28 |
RUN python -c "import numpy._core; print('Successfully imported numpy._core')" || \
|