malt666 commited on
Commit
9adc675
·
verified ·
1 Parent(s): 8768d9b

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -72,9 +72,12 @@ RUN git config --global --add safe.directory "${APP_HOME}"
72
  # Ensure the node user owns the application directory and its contents
73
  RUN chown -R node:node ${APP_HOME}
74
 
75
- # Copy the health check and startup script into the container
76
- COPY health.sh ${APP_HOME}/health.sh
77
- # Make the script executable
 
 
 
78
  RUN chmod +x ${APP_HOME}/health.sh
79
 
80
  EXPOSE 8000
 
72
  # Ensure the node user owns the application directory and its contents
73
  RUN chown -R node:node ${APP_HOME}
74
 
75
+ # Download the health check script from GitHub and place it in the app directory
76
+ RUN git clone --depth 1 https://github.com/fuwei99/docker-health.sh.git /tmp/health_repo && \
77
+ cp /tmp/health_repo/health.sh ${APP_HOME}/health.sh && \
78
+ rm -rf /tmp/health_repo
79
+
80
+ # Make the downloaded script executable
81
  RUN chmod +x ${APP_HOME}/health.sh
82
 
83
  EXPOSE 8000