feat: add environment variable debugging output during Docker build
This commit is contained in:
parent
3b180728e1
commit
5d3fd4fc06
@ -14,10 +14,14 @@ COPY myfavstuff/package.json myfavstuff/package-lock.json* ./
|
|||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
# Copy the rest of your app's source code from the 'myfavstuff' subdirectory
|
# Copy the rest of your app's source code from the 'myfavstuff' subdirectory
|
||||||
COPY ./myfavstuff/. .
|
COPY myfavstuff .
|
||||||
|
|
||||||
# Build the Next.js application
|
# Build the Next.js application
|
||||||
RUN npm run build
|
RUN echo "--- Debugging Build Environment Variables ---" && \
|
||||||
|
echo "NEXT_PUBLIC_SUPABASE_URL as set in Dockerfile: ($NEXT_PUBLIC_SUPABASE_URL)" && \
|
||||||
|
echo "NEXT_PUBLIC_SUPABASE_ANON_KEY as set in Dockerfile: ($NEXT_PUBLIC_SUPABASE_ANON_KEY)" && \
|
||||||
|
echo "--- End Debugging --- " && \
|
||||||
|
npm run build
|
||||||
|
|
||||||
# Use a non-root user for security
|
# Use a non-root user for security
|
||||||
RUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001
|
RUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user