Moved the ARGS to the build section

This commit is contained in:
Tiago Ribeiro
2024-03-19 14:01:11 +00:00
parent 0901c5b186
commit fe9277746b

View File

@@ -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