summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorIwanIDev <iwan@iwani.dev>2026-03-04 17:33:28 +0000
committerIwanIDev <iwan@iwani.dev>2026-03-04 17:33:28 +0000
commit4c4f5ffc6b72732f516aefc6756c848330c106e7 (patch)
tree6178f2826b2dd1b9922c9dc08273e89c3d9b331d /Dockerfile
parent0bc5290fd6f34992584d5ad20a1daeb6d3f795db (diff)
Enhance Docker setup: add QEMU configuration and improve Dockerfile comments for clarity
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