malt666 commited on
Commit
9f2c9d1
·
verified ·
1 Parent(s): 7803995

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -167,7 +167,7 @@ ENTRYPOINT ["tini", "--", "sh", "-c", " \
167
  echo \"*** Auto-configuring cloud-saves plugin with provided secrets ***\" && \
168
  config_file=\"./plugins/cloud-saves/config.json\" && \
169
  echo \"--- Creating config.json for cloud-saves plugin at $config_file ---\" && \
170
- printf '{\\n \"repo_url\": \"%s\",\\n \"branch\": \"main\",\\n \"username\": \"\",\\n \"github_token\": \"%s\",\\n \"display_name\": \"user\",\\n \"is_authorized\": true,\\n \"last_save\": null,\\n \"current_save\": null,\\n \"has_temp_stash\": false,\\n \"autoSaveEnabled\": true,\\n \"autoSaveInterval\": %s,\\n \"autoSaveTargetTag\": \"%s\"\\n}\\n' \"$REPO_URL\" \"$GITHUB_TOKEN\" \"${AUTOSAVE_INTERVAL:-30}\" \"${AUTOSAVE_TARGET_TAG:-}\" > \"$config_file\" && \
171
  chown node:node \"$config_file\" && \
172
  echo \"*** cloud-saves plugin auto-configuration completed ***\"; \
173
  else \
@@ -250,6 +250,7 @@ ENTRYPOINT ["tini", "--", "sh", "-c", " \
250
  fi; \
251
  # --- END: Cleanup before start --- \
252
 
253
- # Execute node server directly, bypassing docker-entrypoint.sh
254
- exec node server.js; \
 
255
  "]
 
167
  echo \"*** Auto-configuring cloud-saves plugin with provided secrets ***\" && \
168
  config_file=\"./plugins/cloud-saves/config.json\" && \
169
  echo \"--- Creating config.json for cloud-saves plugin at $config_file ---\" && \
170
+ printf '{\\n \"repo_url\": \"%s\",\\n \"branch\": \"main\",\\n \"username\": \"\",\\n \"github_token\": \"%s\",\\n \"display_name\": \"user\",\\n \"is_authorized\": true,\\n \"last_save\": null,\\n \"current_save\": null,\\n \"has_temp_stash\": false,\\n \"autoSaveEnabled\": false,\\n \"autoSaveInterval\": %s,\\n \"autoSaveTargetTag\": \"%s\"\\n}\\n' \"$REPO_URL\" \"$GITHUB_TOKEN\" \"${AUTOSAVE_INTERVAL:-30}\" \"${AUTOSAVE_TARGET_TAG:-}\" > \"$config_file\" && \
171
  chown node:node \"$config_file\" && \
172
  echo \"*** cloud-saves plugin auto-configuration completed ***\"; \
173
  else \
 
250
  fi; \
251
  # --- END: Cleanup before start --- \
252
 
253
+ # --- BEGIN: Generate and run health check script ---\\n echo '--- Generating health.sh script ---';\\n cat << EOF > health.sh\\n#!/bin/sh\\n\\nwhile true; do\\n echo \"--- Running health check: curl http://localhost:8000/ ---\"\\n curl http://localhost:8000/ > /dev/null 2>&1\\n echo \"--- Health check finished, sleeping for 30 minutes ---\"\\n sleep 1800\\ndone\\nEOF\\n chmod +x health.sh && chown node:node health.sh && echo 'health.sh generated and permissions set.';\\n echo '--- Running health.sh in background ---';\\n ./health.sh &\\n # --- END: Generate and run health check script ---\\
254
+
255
+ # Execute node server directly, bypassing docker-entrypoint.sh\\n exec node server.js; \\
256
  "]