Fix Dockerfile
This commit is contained in:
@@ -4,12 +4,12 @@ FROM oven/bun:1.3 AS deps
|
||||
WORKDIR /app
|
||||
|
||||
# Workspace manifests first for better layer caching.
|
||||
COPY package.json bun.lock ./
|
||||
COPY package.json ./
|
||||
COPY apps/backend/package.json apps/backend/package.json
|
||||
COPY apps/frontend/package.json apps/frontend/package.json
|
||||
COPY packages/api-contract/package.json packages/api-contract/package.json
|
||||
|
||||
RUN bun install --frozen-lockfile
|
||||
RUN bun install
|
||||
|
||||
FROM deps AS build
|
||||
WORKDIR /app
|
||||
@@ -44,7 +44,7 @@ ENV PORT=3000
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY --from=build /app/apps/backend ./apps/backend
|
||||
COPY --from=build /app/packages ./packages
|
||||
COPY package.json bun.lock ./
|
||||
COPY package.json ./
|
||||
|
||||
WORKDIR /app/apps/backend
|
||||
EXPOSE 3000
|
||||
|
||||
Reference in New Issue
Block a user