docker config changed
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user