wenbemi commited on
Commit
b7a20e5
·
verified ·
1 Parent(s): 80ff647

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \
13
  WORKDIR /app
14
 
15
  # 4. 소스 코드 복사
16
- COPY . .
17
 
18
  # 5. Git LFS 설정 및 대용량 파일 다운로드
19
  RUN git lfs install && \
@@ -23,8 +23,10 @@ RUN git lfs install && \
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  # 7. 스트림릿이 사용할 설정 폴더를 미리 만들고 권한 부여 (PermissionError 해결)
26
- RUN mkdir -p /app/.streamlit && \
27
- chmod -R 777 /app/.streamlit
 
 
28
 
29
  # 8. 포트 개방
30
  EXPOSE 8501
 
13
  WORKDIR /app
14
 
15
  # 4. 소스 코드 복사
16
+ COPY . /app
17
 
18
  # 5. Git LFS 설정 및 대용량 파일 다운로드
19
  RUN git lfs install && \
 
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  # 7. 스트림릿이 사용할 설정 폴더를 미리 만들고 권한 부여 (PermissionError 해결)
26
+ # 권한/경로 고정
27
+ ENV HOME=/app
28
+ ENV STREAMLIT_HOME=/app/.streamlit
29
+ RUN mkdir -p /app/.streamlit && chmod -R 777 /app/.streamlit
30
 
31
  # 8. 포트 개방
32
  EXPOSE 8501