euler314 commited on
Commit
7606d61
·
verified ·
1 Parent(s): 63be654

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -36,6 +36,8 @@ COPY . .
36
 
37
  # Set environment variables
38
  ENV DATA_PATH=/code/data
 
 
39
 
40
  # Expose port
41
  EXPOSE 7860
@@ -47,10 +49,5 @@ RUN useradd -m -u 1000 appuser && \
47
  # Switch to non-root user
48
  USER appuser
49
 
50
- # Create entrypoint script
51
- RUN echo '#!/bin/bash\n\
52
- python app.py --data_path=/code/data' > /code/entrypoint.sh && \
53
- chmod +x /code/entrypoint.sh
54
-
55
- # Set the entrypoint
56
- ENTRYPOINT ["/code/entrypoint.sh"]
 
36
 
37
  # Set environment variables
38
  ENV DATA_PATH=/code/data
39
+ ENV DASH_DEBUG_MODE=false
40
+ ENV PYTHONUNBUFFERED=1
41
 
42
  # Expose port
43
  EXPOSE 7860
 
49
  # Switch to non-root user
50
  USER appuser
51
 
52
+ # Start the application
53
+ CMD ["python", "app.py"]