thliang01 commited on
Commit
42fb74e
·
unverified ·
1 Parent(s): 91870b8

chore: setting

Browse files
Dockerfile CHANGED
@@ -9,21 +9,13 @@ RUN apt-get update && apt-get install -y \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY requirements.txt ./
 
12
  COPY src/ ./src/
13
 
14
  RUN pip3 install -r requirements.txt
15
 
16
- # Create a non-root user and group
17
- RUN addgroup --system streamlituser && adduser --system --group streamlituser
18
-
19
- # Change ownership of the working directory to the new user
20
- RUN chown -R streamlituser:streamlituser /app
21
-
22
- # Switch to the new non-root user
23
- USER streamlituser
24
-
25
  EXPOSE 8501
26
 
27
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
28
 
29
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY requirements.txt ./
12
+
13
  COPY src/ ./src/
14
 
15
  RUN pip3 install -r requirements.txt
16
 
 
 
 
 
 
 
 
 
 
17
  EXPOSE 8501
18
 
19
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
20
 
21
+ ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
src/streamlit_app.py → streamlit_app.py RENAMED
File without changes