diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index a068ffbb37..742cc6af90 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -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: @@ -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: | diff --git a/Dockerfile b/Dockerfile index be4c8badad..506d1a8d36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/