From 255700b5db23fbd78b9e84b6205af1ba61914b52 Mon Sep 17 00:00:00 2001 From: govardhan Date: Wed, 18 Jun 2025 20:43:44 +0530 Subject: [PATCH] docker config changed --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26dfe16..6ae4b31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ - # Base image for all stages FROM node:20-alpine AS base ### Dependencies Stage ### FROM base AS deps -# Set a fast and reliable Alpine mirror (mirrors.tuna.tsinghua.edu.cn is globally accessible) +# Set a fast and reliable Alpine mirror # Check if 'git' is needed (only required if package.json has Git-based dependencies) RUN echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.22/main" > /etc/apk/repositories && \ echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.22/community" >> /etc/apk/repositories && \ @@ -35,6 +34,8 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules # Copy all source files COPY . . +# Debug: List files in components/research to verify presence +RUN ls -l /app/components/research/ # Build the Next.js application RUN pnpm build @@ -71,4 +72,4 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ CMD curl -f http://localhost:3000/health || exit 1 # Start the Next.js application -CMD ["node", "server.js"] +CMD ["node", "server.js"] \ No newline at end of file