Edited docker so it will build.
This commit is contained in:
1 parent
449ef46c84
commit
7ec8f68440
1 file changed
+6
-4
+6
-4
@@ -6,8 +6,9 @@ FROM node:22-alpine AS builder
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install dependencies first (layer caching)
|
# Install dependencies first (layer caching)
|
||||||
COPY package.json ./
|
COPY package.json bun.lock ./
|
||||||
RUN npm install
|
RUN npm install -g bun
|
||||||
|
RUN bun install
|
||||||
|
|
||||||
# Copy application source code
|
# Copy application source code
|
||||||
COPY . .
|
COPY . .
|
||||||
@@ -29,8 +30,9 @@ ENV NODE_ENV=production
|
|||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
|
|
||||||
# Install production dependencies only
|
# Install production dependencies only
|
||||||
COPY package.json ./
|
COPY package.json bun.lock ./
|
||||||
RUN npm install --omit=dev && npm cache clean --force
|
RUN npm install -g bun
|
||||||
|
RUN bun install --production
|
||||||
|
|
||||||
# Copy built bundle from builder stage
|
# Copy built bundle from builder stage
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
|
|||||||
Reference in new issue
Block a user