alidenewade commited on
Commit
3923798
·
verified ·
1 Parent(s): 5ca372e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -25,6 +25,9 @@ RUN pip install --no-cache-dir -r requirements.txt
25
  # Copy the application code
26
  COPY . .
27
 
 
 
 
28
  # Create a non-root user for security
29
  RUN useradd -m -u 1000 user
30
  USER user
@@ -36,4 +39,4 @@ EXPOSE 7860
36
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
37
 
38
  # Command to run the application
39
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
25
  # Copy the application code
26
  COPY . .
27
 
28
+ # Make the startup script executable
29
+ RUN chmod +x start.sh
30
+
31
  # Create a non-root user for security
32
  RUN useradd -m -u 1000 user
33
  USER user
 
39
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
40
 
41
  # Command to run the application
42
+ CMD ["./start.sh"]