feat(docker): armv7 support (#316)

* refactor(docker): use node-slim image for build stage

* feat(docker): armv7 support
This commit is contained in:
Corentin THOMASSET 2024-11-05 13:30:27 +01:00 committed by GitHub
parent 7cef0a7288
commit 9f7797afce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 6 deletions

View File

@ -170,7 +170,7 @@ jobs:
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true push: true
tags: | tags: |
corentinth/enclosed:latest corentinth/enclosed:latest
@ -183,7 +183,7 @@ jobs:
with: with:
context: . context: .
file: ./Dockerfile.rootless file: ./Dockerfile.rootless
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true push: true
tags: | tags: |
corentinth/enclosed:latest-rootless corentinth/enclosed:latest-rootless

View File

@ -1,5 +1,7 @@
# Base image using Node.js Alpine version 22 # Base image is node:22-slim, we cannot use node:22-alpine because of
FROM node:22-alpine AS builder # a known issue for arm/v7 architecture (hangs on dependency installation)
# see https://github.com/nodejs/docker-node/issues/2077
FROM node:22-slim AS builder
# Set the working directory for the app # Set the working directory for the app
WORKDIR /app WORKDIR /app

View File

@ -1,5 +1,7 @@
# Base image using Node.js Alpine version 22 # Base image is node:22-slim, we cannot use node:22-alpine because of
FROM node:22-alpine AS builder # a known issue for arm/v7 architecture (hangs on dependency installation)
# see https://github.com/nodejs/docker-node/issues/2077
FROM node:22-slim AS builder
# Set the working directory for the app # Set the working directory for the app
WORKDIR /app WORKDIR /app