Added all new changes from main github repo.
This commit is contained in:
1 parent
564975d0e3
commit
449ef46c84
30 files changed
+2288
-524
No files matched your search
+5
-7
@@ -6,9 +6,8 @@ FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies first (layer caching)
|
||||
COPY package.json bun.lock ./
|
||||
RUN npm install -g bun
|
||||
RUN bun install
|
||||
COPY package.json ./
|
||||
RUN npm install
|
||||
|
||||
# Copy application source code
|
||||
COPY . .
|
||||
@@ -18,7 +17,7 @@ ARG VITE_GOOGLE_MAPS_API_KEY=""
|
||||
ENV VITE_GOOGLE_MAPS_API_KEY=$VITE_GOOGLE_MAPS_API_KEY
|
||||
|
||||
# Build production bundle (Vite client + server.cjs)
|
||||
RUN bun run build
|
||||
RUN npm run build
|
||||
|
||||
# ========================================================
|
||||
# Stage 2: Serve full-stack application (API + SPA) with Node.js
|
||||
@@ -30,9 +29,8 @@ ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
|
||||
# Install production dependencies only
|
||||
COPY package.json bun.lock ./
|
||||
RUN npm install -g bun
|
||||
RUN bun install --production
|
||||
COPY package.json ./
|
||||
RUN npm install --omit=dev && npm cache clean --force
|
||||
|
||||
# Copy built bundle from builder stage
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
Reference in new issue
Block a user