Skip to content

Commit

Permalink
cross compile last step only
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 27, 2024
1 parent cef16e5 commit 22f9cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
platforms: linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base
FROM oven/bun:slim as base
FROM oven/bun as base

# Deps
FROM base AS deps
Expand All @@ -15,9 +15,8 @@ COPY . .
RUN NODE_ENV=production bun run build

# Production
FROM base AS production
FROM --platform=$BUILDPLATFORM oven/bun:distroless AS production
COPY --from=build /src/.output /app
USER bun
EXPOSE 3000/tcp
ENV HOST=0.0.0.0
ENTRYPOINT [ "bun", "run", "/app/server/index.mjs" ]
CMD [ "/app/server/index.mjs" ]

0 comments on commit 22f9cb6

Please sign in to comment.