We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78c6eab commit ab7a167Copy full SHA for ab7a167
Dockerfile
@@ -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 -----------
13
FROM oven/bun:1-slim AS production
14
15
RUN apt-get update \
@@ -8,8 +20,8 @@ RUN adduser --disabled-password --gecos "" appuser
20
21
WORKDIR /app
22
-COPY --from=build /app/build ./build
-COPY --from=build /app/package.json ./
23
+COPY --from=builder /app/build ./build
24
+COPY --from=builder /app/package.json ./
25
26
RUN bun install --production --no-progress
27
0 commit comments