diff --git a/Dockerfile b/Dockerfile index 613b9e3..eafab74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,10 +14,14 @@ COPY myfavstuff/package.json myfavstuff/package-lock.json* ./ RUN npm ci # Copy the rest of your app's source code from the 'myfavstuff' subdirectory -COPY ./myfavstuff/. . +COPY myfavstuff . # 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 RUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001