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