fix build for ARM

This commit is contained in:
GooeyTuxedo 2023-04-18 15:51:16 -07:00
parent bfaa6ebd25
commit 9fcddcaa28

View File

@ -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