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