ycho223 commited on
Commit
e303a57
Β·
verified Β·
1 Parent(s): 0c984a5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -2,7 +2,6 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # βœ… ν•„μˆ˜ νŒ¨ν‚€μ§€ μ„€μΉ˜
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
@@ -10,18 +9,17 @@ RUN apt-get update && apt-get install -y \
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
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
 
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 /app/.streamlit
17
  COPY .streamlit/config.toml /app/.streamlit/config.toml
18
+ RUN chmod -R 777 /app/.streamlit
19
 
20
+ # βœ… HOME μ„€μ •
21
  ENV HOME=/app
22
 
 
23
  RUN pip3 install -r requirements.txt
24
 
25
  EXPOSE 8501