wenbemi commited on
Commit
c6a6e7c
Β·
verified Β·
1 Parent(s): 07da4ee

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -6,21 +6,25 @@ RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
8
  git \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  # 3. μž‘μ—… 디렉터리λ₯Ό λ§Œλ“€κ³  μ΄λ™ν•©λ‹ˆλ‹€.
12
  WORKDIR /app
13
 
14
- # 4. ν˜„μž¬ ν΄λ”μ˜ λͺ¨λ“  νŒŒμΌμ„ μž‘μ—… λ””λ ‰ν„°λ¦¬λ‘œ λ³΅μ‚¬ν•©λ‹ˆλ‹€.
 
 
15
  COPY . .
16
 
17
- # 5. requirements.txt에 λͺ…μ‹œλœ 파이썬 λΌμ΄λΈŒλŸ¬λ¦¬λ“€μ„ μ„€μΉ˜ν•©λ‹ˆλ‹€.
 
 
 
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
- # 6. 7860번 포트λ₯Ό 외뢀에 κ°œλ°©ν•©λ‹ˆλ‹€.
21
  EXPOSE 7860
22
 
23
- # 7. μ»¨ν…Œμ΄λ„ˆκ°€ μ‹œμž‘λ  λ•Œ streamlit 앱을 μ‹€ν–‰ν•©λ‹ˆλ‹€.
24
- # - κΆŒν•œ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ --server.fileWatcherType=none μΆ”κ°€
25
- # - λΆˆν•„μš”ν•œ ν™ˆ 디렉터리 μ„€μ •(ENV)은 μ œκ±°ν•˜μ—¬ λ‹¨μˆœν™”
26
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.fileWatcherType=none"]
 
6
  build-essential \
7
  curl \
8
  git \
9
+ git-lfs \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # 3. μž‘μ—… 디렉터리λ₯Ό λ§Œλ“€κ³  μ΄λ™ν•©λ‹ˆλ‹€.
13
  WORKDIR /app
14
 
15
+ # 4. Git LFSλ₯Ό ν™œμ„±ν™”ν•˜κ³ , ν˜„μž¬ ν΄λ”μ˜ λͺ¨λ“  νŒŒμΌμ„ λ³΅μ‚¬ν•©λ‹ˆλ‹€.
16
+ # COPY 이전에 git lfs install을 μ‹€ν–‰ν•˜λŠ” 것이 μ€‘μš”!
17
+ RUN git lfs install
18
  COPY . .
19
 
20
+ # 5. Git LFSλ₯Ό 톡해 μ‹€μ œ λŒ€μš©λŸ‰ νŒŒμΌλ“€μ„ λ‹€μš΄λ‘œλ“œν•©λ‹ˆλ‹€.
21
+ RUN git lfs pull
22
+
23
+ # 6. requirements.txt에 λͺ…μ‹œλœ 파이썬 λΌμ΄λΈŒλŸ¬λ¦¬λ“€μ„ μ„€μΉ˜ν•©λ‹ˆλ‹€.
24
  RUN pip install --no-cache-dir -r requirements.txt
25
 
26
+ # 7. 7860번 포트λ₯Ό 외뢀에 κ°œλ°©ν•©λ‹ˆλ‹€.
27
  EXPOSE 7860
28
 
29
+ # 8. μ»¨ν…Œμ΄λ„ˆκ°€ μ‹œμž‘λ  λ•Œ streamlit 앱을 μ‹€ν–‰ν•©λ‹ˆλ‹€.
 
 
30
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.fileWatcherType=none"]