Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make package build multi-platform by adding linux/arm64/v8 #1911

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Apt update
run: sudo apt-get update
- name: apt install buildah qemu-user-static
run: sudo apt-get install -y buildah qemu-user-static

- name: Set node version
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -61,7 +66,7 @@ jobs:
tags: ${{ steps.image-metadata.outputs.tags }}
labels: ${{ steps.image-metadata.outputs.labels }}
containerfiles: ./Dockerfile
platforms: linux/amd64
platforms: linux/amd64, linux/arm64
oci: true
# Webpack seems to use a lot of open files, increase the max open file limit to accomodate.
extra-args: |
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM node:18-alpine AS build
ARG PLATFORM

FROM --platform=${PLATFORM} node:18-alpine AS build

COPY . .
RUN npm ci
RUN npm run build

FROM nginx:1.25-alpine3.18 AS cyberchef
FROM --platform=${PLATFORM} nginx:1.25-alpine3.18 AS cyberchef

COPY --from=build ./build/prod /usr/share/nginx/html/
Loading