sakshamlakhera commited on
Commit
ec5275c
·
1 Parent(s): e775ab8

docker change2

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -10,6 +10,10 @@ RUN apt-get update && apt-get install -y \
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
 
 
 
13
  # Set writable cache paths
14
  ENV STREAMLIT_HOME="/app/.streamlit"
15
  ENV TORCH_HOME="/app/.cache/torch"
@@ -20,8 +24,6 @@ ENV XDG_CACHE_HOME="/app/.cache"
20
  RUN mkdir -p $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets \
21
  && chmod -R 777 $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets
22
 
23
- # Copy source code
24
- COPY . .
25
 
26
  # Install Python dependencies
27
  RUN pip3 install --no-cache-dir -r requirements.txt
@@ -31,7 +33,7 @@ EXPOSE 8501
31
 
32
  # Disable CORS (use only if safe)
33
  ENV STREAMLIT_SERVER_ENABLECORS=false
34
- RUN chmod -R 777 /app
35
  # Health check for Docker
36
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
37
 
 
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Copy source code
14
+ COPY . /app
15
+ RUN chmod -R 777 /app
16
+
17
  # Set writable cache paths
18
  ENV STREAMLIT_HOME="/app/.streamlit"
19
  ENV TORCH_HOME="/app/.cache/torch"
 
24
  RUN mkdir -p $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets \
25
  && chmod -R 777 $STREAMLIT_HOME $TORCH_HOME $GDOWN_HOME $XDG_CACHE_HOME /app/assets
26
 
 
 
27
 
28
  # Install Python dependencies
29
  RUN pip3 install --no-cache-dir -r requirements.txt
 
33
 
34
  # Disable CORS (use only if safe)
35
  ENV STREAMLIT_SERVER_ENABLECORS=false
36
+
37
  # Health check for Docker
38
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
39