mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2026-08-19 09:40:25 +00:00
The base image was pinned to linux/amd64, so the arm64 build leg pulled the amd64 image and failed with 'exec format error'. Remove the pin so each platform builds on its native base (jambonz v11 arm64 support). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
317 B
Docker
24 lines
317 B
Docker
FROM node:24-alpine AS base
|
|
|
|
RUN apk --update --no-cache add --virtual .builds-deps build-base python3
|
|
|
|
WORKDIR /opt/app/
|
|
|
|
FROM base AS build
|
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
|
|
FROM base
|
|
|
|
COPY --from=build /opt/app /opt/app/
|
|
|
|
ARG NODE_ENV
|
|
|
|
ENV NODE_ENV=$NODE_ENV
|
|
|
|
CMD [ "node", "app.js" ]
|