From d556806c640fe7f0ea09d74a6efb826038a8415d Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 9 Aug 2022 13:36:24 -0700 Subject: [PATCH] Updated docker tracker update. --- Dockerfile | 2 +- scripts/update-tracker.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 672e19bf..48f3df32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ RUN yarn add npm-run-all dotenv prisma # You only need to copy next.config.js if you are NOT using the default configuration COPY --from=builder /app/next.config.js . -COPY --from=builder /app/public ./public +COPY --from=builder --chown=nextjs:nodejs /app/public ./public COPY --from=builder /app/package.json ./package.json COPY --from=builder /app/prisma ./prisma COPY --from=builder /app/scripts ./scripts diff --git a/scripts/update-tracker.js b/scripts/update-tracker.js index 3955d45e..6b9e96c7 100644 --- a/scripts/update-tracker.js +++ b/scripts/update-tracker.js @@ -14,5 +14,5 @@ if (endPoint) { tracker.toString().replace(/"\/api\/collect"/g, `"${endPoint}"`), ); - console.log(`Updated tracker endpoint with "${endPoint}"`); + console.log(`Updated tracker endpoint: ${endPoint}.`); }