ycho223 commited on
Commit
fe6a887
ยท
verified ยท
1 Parent(s): a1f0616

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -2,6 +2,7 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
@@ -9,16 +10,18 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
12
  COPY requirements.txt ./
13
  COPY src/ ./src/
14
 
15
- # โœ… Streamlit ์„ค์ • ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ ๋ฐ ๊ถŒํ•œ ๋ถ€์—ฌ
16
- RUN mkdir -p /root/.streamlit
17
- COPY .streamlit/config.toml /root/.streamlit/config.toml
18
 
19
- # โœ… Streamlit ์„ค์ • ๊ฒฝ๋กœ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋กœ ์ง€์ •
20
- ENV STREAMLIT_CONFIG_DIR=/root/.streamlit
21
 
 
22
  RUN pip3 install -r requirements.txt
23
 
24
  EXPOSE 8501
 
2
 
3
  WORKDIR /app
4
 
5
+ # โœ… ํ•„์ˆ˜ ํŒจํ‚ค์ง€ ์„ค์น˜
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
 
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # โœ… requirements & source code ๋ณต์‚ฌ
14
  COPY requirements.txt ./
15
  COPY src/ ./src/
16
 
17
+ # โœ… Streamlit config ๋””๋ ‰ํ† ๋ฆฌ & ๊ถŒํ•œ ์„ค์ •
18
+ RUN mkdir -p /app/.streamlit
19
+ COPY .streamlit/config.toml /app/.streamlit/config.toml
20
 
21
+ # โœ… HOME ์ง€์ • (streamlit ๋‚ด๋ถ€์—์„œ๋„ ํ•„์š”)
22
+ ENV HOME=/app
23
 
24
+ # โœ… ํŒจํ‚ค์ง€ ์„ค์น˜
25
  RUN pip3 install -r requirements.txt
26
 
27
  EXPOSE 8501