Skip to content

Commit

Permalink
feat: add arm support
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Sep 23, 2024
1 parent cc13bf6 commit d38a45c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM node:21-alpine AS base
# 添加多架构支持
FROM --platform=linux/amd64 node:21-alpine AS base-amd64
FROM --platform=linux/arm64 node:21-alpine AS base-arm64

# 选择基础镜像
ARG TARGETARCH
FROM base-${TARGETARCH} AS base

FROM base AS deps
RUN apk add --no-cache libc6-compat
Expand Down

0 comments on commit d38a45c

Please sign in to comment.