Skip to content

Commit ab7a167

Browse files
committed
fix: Dockerfile fix
1 parent 78c6eab commit ab7a167

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Dockerfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# ----------- Build Stage -----------
2+
FROM oven/bun:1 AS builder
3+
4+
WORKDIR /app
5+
6+
COPY autoproject/package.json autoproject/bun.lockb* ./
7+
RUN bun install --frozen-lockfile --no-progress
8+
9+
COPY autoproject/ ./
10+
RUN bun run build
11+
12+
# ----------- Production Stage -----------
113
FROM oven/bun:1-slim AS production
214

315
RUN apt-get update \
@@ -8,8 +20,8 @@ RUN adduser --disabled-password --gecos "" appuser
820

921
WORKDIR /app
1022

11-
COPY --from=build /app/build ./build
12-
COPY --from=build /app/package.json ./
23+
COPY --from=builder /app/build ./build
24+
COPY --from=builder /app/package.json ./
1325

1426
RUN bun install --production --no-progress
1527

0 commit comments

Comments
 (0)