From eeb0c97ceb1a2b19bf1e7a4c3e42c0ea973219fe Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 17 Aug 2022 15:11:53 +0200 Subject: [PATCH] making the deploy actually work --- compose.yml | 5 ++--- entrypoint.sh.tmpl | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/compose.yml b/compose.yml index 4a4c82f..2792c1d 100644 --- a/compose.yml +++ b/compose.yml @@ -7,8 +7,8 @@ services: environment: - NODE_ENV=production - CACHE_TYPE=redis - - REDIS_URL="redis://redis:6379/" - - PUPPETEER_WS_ENDPOINT="ws://browserless:3000" + - REDIS_URL=redis://redis:6379/ + - PUPPETEER_WS_ENDPOINT=ws://browserless:3000 networks: - proxy - internal @@ -17,7 +17,6 @@ services: target: /docker-entrypoint.sh mode: 0555 entrypoint: /docker-entrypoint.sh - command: npm run start deploy: restart_policy: condition: on-failure diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index 28401f8..ededc49 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -28,6 +28,6 @@ file_env() { file_env "IG_PASSWORD" {{ end }} -# upstream startup command -# https://raw.githubusercontent.com/DIYgod/RSSHub/master/Dockerfile -dumb-init -- +# upstream CMD +# https://github.com/DIYgod/RSSHub/blob/f4e9f8dcaacc75e9f936545da58d4b7c2e27e5ab/Dockerfile#L182 +npm run start "$@"