From 71705f01849583ea6be89dae5213c697741acb6c Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Fri, 8 Dec 2023 19:00:21 +0800 Subject: [PATCH] fix: #566 --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99024c32f25..fc1db81cb7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,7 @@ RUN npm config set registry https://registry.npm.taobao.org \ FROM develop-py AS data ARG app ARG nike_refresh_token -ARG email -ARG password +ARG secret_string ARG client_id ARG client_secret ARG refresh_token @@ -39,9 +38,9 @@ RUN DUMMY=${DUMMY}; \ if [ "$app" = "NRC" ] ; then \ python3 run_page/nike_sync.py ${nike_refresh_token}; \ elif [ "$app" = "Garmin" ] ; then \ - python3 run_page/garmin_sync.py ${email} ${password}; \ + python3 run_page/garmin_sync.py ${secret_string} ; \ elif [ "$app" = "Garmin-CN" ] ; then \ - python3 run_page/garmin_sync.py ${email} ${password} --is-cn ; \ + python3 run_page/garmin_sync.py ${secret_string} --is-cn ; \ elif [ "$app" = "Strava" ] ; then \ python3 run_page/strava_sync.py ${client_id} ${client_secret} ${refresh_token};\ elif [ "$app" = "Nike_to_Strava" ] ; then \