MogensR commited on
Commit
b5b9fa0
·
verified ·
1 Parent(s): dec00a5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -9
Dockerfile CHANGED
@@ -97,15 +97,9 @@ RUN mkdir -p /home/user/app/pipeline /home/user/app/models /home/user/app/storag
97
  # ---- Copy Application Code ----
98
  COPY --chown=user:user . .
99
 
100
- # ---- Healthcheck ----
101
  HEALTHCHECK --interval=30s --timeout=8s --retries=3 CMD \
102
- python3 -c "
103
- import numpy; print('NumPy:', numpy.__version__)
104
- import matplotlib; print('Matplotlib:', matplotlib.__version__)
105
- import torch; print('PyTorch:', torch.__version__)
106
- import mediapipe; print('MediaPipe:', mediapipe.__version__)
107
- import subprocess; subprocess.run(['ffmpeg', '-version'], check=False)
108
- "
109
 
110
  # ---- Runtime Startup ----
111
  USER user
@@ -128,4 +122,3 @@ CMD ["sh", "-c", "
128
  --server.enableXsrfProtection=false --logger.level=debug \
129
  streamlit_app.py
130
  "]
131
-
 
97
  # ---- Copy Application Code ----
98
  COPY --chown=user:user . .
99
 
100
+ # ---- Healthcheck (Single Line) ----
101
  HEALTHCHECK --interval=30s --timeout=8s --retries=3 CMD \
102
+ python3 -c "import numpy; print('NumPy:', numpy.__version__); import matplotlib; print('Matplotlib:', matplotlib.__version__); import torch; print('PyTorch:', torch.__version__); import mediapipe; print('MediaPipe:', mediapipe.__version__); import subprocess; subprocess.run(['ffmpeg', '-version'], check=False)"
 
 
 
 
 
 
103
 
104
  # ---- Runtime Startup ----
105
  USER user
 
122
  --server.enableXsrfProtection=false --logger.level=debug \
123
  streamlit_app.py
124
  "]