From 9fcddcaa28b5c9f4bb9f72990860dd0034bdcaf1 Mon Sep 17 00:00:00 2001 From: GooeyTuxedo Date: Tue, 18 Apr 2023 15:51:16 -0700 Subject: [PATCH] fix build for ARM --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index adbb107..5037075 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,8 @@ FROM node:18-slim as ts-compiler WORKDIR /usr/app COPY package*.json ./ COPY tsconfig*.json ./ +RUN apt update \ + && apt install build-essential python3 -y RUN npm install COPY . ./ RUN npm run build @@ -10,6 +12,8 @@ FROM node:18-slim as ts-remover WORKDIR /usr/app COPY --from=ts-compiler /usr/app/package*.json ./ COPY --from=ts-compiler /usr/app/dist ./ +RUN apt update \ + && apt install build-essential python3 -y RUN npm install --omit=dev FROM node:18-slim