Spaces:
Paused
Paused
Upload Dockerfile
Browse files- 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 |
-
#
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
| 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
|