Merge branch 'release/0.1.0'
This commit is contained in:
commit
53e2c7016c
@ -40,6 +40,12 @@ tests/
|
|||||||
.flake8
|
.flake8
|
||||||
requirements-dev.txt
|
requirements-dev.txt
|
||||||
|
|
||||||
|
# Python specific - don't exclude frontend
|
||||||
|
!frontend/
|
||||||
|
frontend/node_modules/
|
||||||
|
frontend/.next/
|
||||||
|
frontend/dist/
|
||||||
|
|
||||||
# Ambiente virtual
|
# Ambiente virtual
|
||||||
venv/
|
venv/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
@ -6,24 +6,16 @@ WORKDIR /app
|
|||||||
# Define build arguments with default values
|
# Define build arguments with default values
|
||||||
ARG NEXT_PUBLIC_API_URL=https://api.evo-ai.co
|
ARG NEXT_PUBLIC_API_URL=https://api.evo-ai.co
|
||||||
|
|
||||||
|
# Install pnpm globally
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
# Copy package files first for better caching
|
# Copy package files first for better caching
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
|
||||||
# Copy configuration files that are needed for dependency resolution
|
|
||||||
COPY tsconfig.json ./
|
|
||||||
COPY next.config.mjs ./
|
|
||||||
COPY tailwind.config.ts ./
|
|
||||||
COPY postcss.config.mjs ./
|
|
||||||
COPY components.json ./
|
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pnpm install --no-frozen-lockfile
|
RUN pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
RUN pnpm add next-runtime-env
|
# Copy all source code (this includes tsconfig.json, lib/, etc.)
|
||||||
|
|
||||||
# Copy all source code
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Set environment variables from build arguments
|
# Set environment variables from build arguments
|
||||||
@ -40,14 +32,13 @@ WORKDIR /app
|
|||||||
# Define build arguments again for the runner stage
|
# Define build arguments again for the runner stage
|
||||||
ARG NEXT_PUBLIC_API_URL=https://api-evoai.evoapicloud.com
|
ARG NEXT_PUBLIC_API_URL=https://api-evoai.evoapicloud.com
|
||||||
|
|
||||||
|
# Install pnpm globally
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
# Install production dependencies only
|
# Install production dependencies only
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
RUN pnpm install --prod --no-frozen-lockfile
|
RUN pnpm install --prod --no-frozen-lockfile
|
||||||
|
|
||||||
RUN pnpm add next-runtime-env
|
|
||||||
|
|
||||||
# Copy built assets from builder
|
# Copy built assets from builder
|
||||||
COPY --from=builder /app/.next ./.next
|
COPY --from=builder /app/.next ./.next
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
|
Loading…
Reference in New Issue
Block a user