Skip to content

Commit 53e2c70

Browse files
committed
Merge branch 'release/0.1.0'
2 parents 772263f + 27a3679 commit 53e2c70

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ tests/
4040
.flake8
4141
requirements-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
4450
venv/
4551
__pycache__/

frontend/Dockerfile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,16 @@ WORKDIR /app
66
# Define build arguments with default values
77
ARG NEXT_PUBLIC_API_URL=https://api.evo-ai.co
88

9+
# Install pnpm globally
910
RUN npm install -g pnpm
1011

1112
# Copy package files first for better caching
1213
COPY 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
2216
RUN 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.)
2719
COPY . .
2820

2921
# Set environment variables from build arguments
@@ -40,14 +32,13 @@ WORKDIR /app
4032
# Define build arguments again for the runner stage
4133
ARG NEXT_PUBLIC_API_URL=https://api-evoai.evoapicloud.com
4234

35+
# Install pnpm globally
4336
RUN npm install -g pnpm
4437

4538
# Install production dependencies only
4639
COPY package.json pnpm-lock.yaml ./
4740
RUN pnpm install --prod --no-frozen-lockfile
4841

49-
RUN pnpm add next-runtime-env
50-
5142
# Copy built assets from builder
5243
COPY --from=builder /app/.next ./.next
5344
COPY --from=builder /app/public ./public

0 commit comments

Comments
 (0)