File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ tests/
4040.flake8
4141requirements-dev.txt
4242
43+ # Python specific - don't exclude frontend
44+ ! frontend /
45+ frontend /node_modules /
46+ frontend /.next /
47+ frontend /dist /
48+
4349# Ambiente virtual
4450venv /
4551__pycache__ /
Original file line number Diff line number Diff line change @@ -6,24 +6,16 @@ WORKDIR /app
66# Define build arguments with default values
77ARG NEXT_PUBLIC_API_URL=https://api.evo-ai.co
88
9+ # Install pnpm globally
910RUN npm install -g pnpm
1011
1112# Copy package files first for better caching
1213COPY package.json pnpm-lock.yaml ./
1314
14- # Copy configuration files that are needed for dependency resolution
15- COPY tsconfig.json ./
16- COPY next.config.mjs ./
17- COPY tailwind.config.ts ./
18- COPY postcss.config.mjs ./
19- COPY components.json ./
20-
2115# Install dependencies
2216RUN pnpm install --no-frozen-lockfile
2317
24- RUN pnpm add next-runtime-env
25-
26- # Copy all source code
18+ # Copy all source code (this includes tsconfig.json, lib/, etc.)
2719COPY . .
2820
2921# Set environment variables from build arguments
@@ -40,14 +32,13 @@ WORKDIR /app
4032# Define build arguments again for the runner stage
4133ARG NEXT_PUBLIC_API_URL=https://api-evoai.evoapicloud.com
4234
35+ # Install pnpm globally
4336RUN npm install -g pnpm
4437
4538# Install production dependencies only
4639COPY package.json pnpm-lock.yaml ./
4740RUN pnpm install --prod --no-frozen-lockfile
4841
49- RUN pnpm add next-runtime-env
50-
5142# Copy built assets from builder
5243COPY --from=builder /app/.next ./.next
5344COPY --from=builder /app/public ./public
You can’t perform that action at this time.
0 commit comments