summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index cfb3e0a..3530ae0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
-# Build stage
-FROM oven/bun:latest AS build
+# Build stage - runs on native platform for speed
+FROM --platform=$BUILDPLATFORM oven/bun:latest AS build
WORKDIR /app
@@ -9,7 +9,7 @@ RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
-# Production stage
+# Production stage - targets the deployment platform
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html