parkkyujin commited on
Commit
19ea845
ยท
verified ยท
1 Parent(s): ae11f4a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # 4. Streamlit ์„ค์ • ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ ๋ฐ ๊ถŒํ•œ ์„ค์ •
27
  RUN mkdir -p /home/streamlit/.streamlit && \
28
  chown -R streamlit:streamlit /home/streamlit/.streamlit && \
29
  chown -R streamlit:streamlit /app
30
 
31
- # 5. NumPy ํ˜ธํ™˜์„ฑ ํ™•์ธ
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')" || \