diff --git a/webapp/Dockerfile b/webapp/Dockerfile index ef38766..8c6c640 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -14,7 +14,7 @@ COPY webapp/ . ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 # Use a dummy DB_URI during build to prevent connection attempts -ENV DB_URI=mongodb://dummy:password@localhost:27017/dummy +ENV DB_URI=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:27017/Infinity?authSource=admin # Build the application RUN npm run build