userIdc2024 commited on
Commit
1d1da99
·
verified ·
1 Parent(s): c694efe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -10
Dockerfile CHANGED
@@ -1,26 +1,16 @@
1
  FROM python:3.9-slim
2
-
3
  WORKDIR /app
4
-
5
  ENV HOME=/app
6
-
7
  RUN mkdir -p /app/.streamlit && \
8
  chmod -R 777 /app/.streamlit
9
-
10
  RUN apt-get update && apt-get install -y \
11
  build-essential \
12
  curl \
13
- software-properties-common \
14
  git \
15
  && rm -rf /var/lib/apt/lists/*
16
-
17
  COPY requirements.txt ./
18
  COPY src/ ./src/
19
-
20
  RUN pip3 install -r requirements.txt
21
-
22
  EXPOSE 8501
23
-
24
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
25
-
26
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
 
1
  FROM python:3.9-slim
 
2
  WORKDIR /app
 
3
  ENV HOME=/app
 
4
  RUN mkdir -p /app/.streamlit && \
5
  chmod -R 777 /app/.streamlit
 
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
 
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
 
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
 
13
  RUN pip3 install -r requirements.txt
 
14
  EXPOSE 8501
 
15
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
16
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]