Refat81 commited on
Commit
2e5058d
·
verified ·
1 Parent(s): 78a5801

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -8
Dockerfile CHANGED
@@ -5,22 +5,16 @@ WORKDIR /app
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
8
- git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY requirements.txt ./
12
  COPY *.py ./
13
  COPY pages/ ./pages/
14
 
15
- RUN pip3 install -r requirements.txt
16
-
17
- # Disable Streamlit metrics to fix permission issues
18
- ENV STREAMLIT_GLOBAL_METRICS=false
19
- ENV STREAMLIT_GLOBAL_DEVELOPMENT_MODE=false
20
- ENV STREAMLIT_SERVER_HEADLESS=true
21
 
22
  EXPOSE 8501
23
 
24
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
25
 
26
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--global.developmentMode=false", "--browser.gatherUsageStats=false"]
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  COPY requirements.txt ./
11
  COPY *.py ./
12
  COPY pages/ ./pages/
13
 
14
+ RUN pip3 install --no-cache-dir -r requirements.txt
 
 
 
 
 
15
 
16
  EXPOSE 8501
17
 
18
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
19
 
20
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]