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