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/
40
40
.flake8
41
41
requirements-dev.txt
42
42
43
+ # Python specific - don't exclude frontend
44
+ ! frontend /
45
+ frontend /node_modules /
46
+ frontend /.next /
47
+ frontend /dist /
48
+
43
49
# Ambiente virtual
44
50
venv /
45
51
__pycache__ /
Original file line number Diff line number Diff line change @@ -6,24 +6,16 @@ WORKDIR /app
6
6
# Define build arguments with default values
7
7
ARG NEXT_PUBLIC_API_URL=https://api.evo-ai.co
8
8
9
+ # Install pnpm globally
9
10
RUN npm install -g pnpm
10
11
11
12
# Copy package files first for better caching
12
13
COPY package.json pnpm-lock.yaml ./
13
14
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
-
21
15
# Install dependencies
22
16
RUN pnpm install --no-frozen-lockfile
23
17
24
- RUN pnpm add next-runtime-env
25
-
26
- # Copy all source code
18
+ # Copy all source code (this includes tsconfig.json, lib/, etc.)
27
19
COPY . .
28
20
29
21
# Set environment variables from build arguments
@@ -40,14 +32,13 @@ WORKDIR /app
40
32
# Define build arguments again for the runner stage
41
33
ARG NEXT_PUBLIC_API_URL=https://api-evoai.evoapicloud.com
42
34
35
+ # Install pnpm globally
43
36
RUN npm install -g pnpm
44
37
45
38
# Install production dependencies only
46
39
COPY package.json pnpm-lock.yaml ./
47
40
RUN pnpm install --prod --no-frozen-lockfile
48
41
49
- RUN pnpm add next-runtime-env
50
-
51
42
# Copy built assets from builder
52
43
COPY --from=builder /app/.next ./.next
53
44
COPY --from=builder /app/public ./public
You can’t perform that action at this time.
0 commit comments