From fe9277746ba260720bee174bf07eecb2e8cd5fc4 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Tue, 19 Mar 2024 14:01:11 +0000 Subject: [PATCH] Moved the ARGS to the build section --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4789099..e90ac1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,9 @@ COPY . . # Uncomment the following line in case you want to disable telemetry during the build. # ENV NEXT_TELEMETRY_DISABLED 1 +ARG STRAPI_URL=http://localhost:1337 +ARG STRAPI_TOKEN=TOKEN + RUN yarn build # If using npm comment out above and use below instead @@ -49,8 +52,8 @@ COPY --from=builder --chown=1001:1001 /app/.next/static ./.next/static USER nextjs -ARG STRAPI_URL=http://localhost:1337 -ARG STRAPI_TOKEN=TOKEN +ENV STRAPI_URL=http://localhost:1337 +ENV STRAPI_TOKEN=TOKEN EXPOSE 3000