diff options
| author | IwanIDev <iwan@iwani.dev> | 2026-03-04 17:33:28 +0000 |
|---|---|---|
| committer | IwanIDev <iwan@iwani.dev> | 2026-03-04 17:33:28 +0000 |
| commit | 4c4f5ffc6b72732f516aefc6756c848330c106e7 (patch) | |
| tree | 6178f2826b2dd1b9922c9dc08273e89c3d9b331d | |
| parent | 0bc5290fd6f34992584d5ad20a1daeb6d3f795db (diff) | |
Enhance Docker setup: add QEMU configuration and improve Dockerfile comments for clarity
| -rw-r--r-- | .github/workflows/docker_build.yml | 3 | ||||
| -rw-r--r-- | Dockerfile | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/docker_build.yml b/.github/workflows/docker_build.yml index 0d13852..608592c 100644 --- a/.github/workflows/docker_build.yml +++ b/.github/workflows/docker_build.yml @@ -25,6 +25,9 @@ jobs: - name: Lowercase image name run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> $GITHUB_ENV + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -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 |
