build: use env vars

This commit is contained in:
Aaron Yarborough 2025-05-02 23:21:10 +01:00
parent df3dd52354
commit 190e91f083

View file

@ -42,6 +42,9 @@ ENV NODE_ENV=production
# Uncomment the following line in case you want to disable telemetry during runtime. # Uncomment the following line in case you want to disable telemetry during runtime.
ENV NEXT_TELEMETRY_DISABLED=1s ENV NEXT_TELEMETRY_DISABLED=1s
ARG NEXT_PUBLIC_CONTENT_API_BASE_URL
ENV NEXT_PUBLIC_CONTENT_API_BASE_URL=$NEXT_PUBLIC_CONTENT_API_BASE_URL
RUN addgroup --system --gid 1001 nodejs RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs