fix build for ARM
This commit is contained in:
parent
bfaa6ebd25
commit
9fcddcaa28
@ -2,6 +2,8 @@ FROM node:18-slim as ts-compiler
|
|||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
COPY tsconfig*.json ./
|
COPY tsconfig*.json ./
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install build-essential python3 -y
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
@ -10,6 +12,8 @@ FROM node:18-slim as ts-remover
|
|||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
COPY --from=ts-compiler /usr/app/package*.json ./
|
COPY --from=ts-compiler /usr/app/package*.json ./
|
||||||
COPY --from=ts-compiler /usr/app/dist ./
|
COPY --from=ts-compiler /usr/app/dist ./
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install build-essential python3 -y
|
||||||
RUN npm install --omit=dev
|
RUN npm install --omit=dev
|
||||||
|
|
||||||
FROM node:18-slim
|
FROM node:18-slim
|
||||||
|
Loading…
Reference in New Issue
Block a user