Moved the ARGS to the build section
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user