Change base to use alpine (#15)

* Change base to use alpine
* Add build requirements for node-gyp
* Specify python version
This commit is contained in:
2022-05-14 08:17:09 +01:00
committed by GitHub
parent eedf36edaa
commit 44f63b49cb

View File

@@ -1,4 +1,4 @@
FROM node:18.0.0 AS base
FROM node:18-alpine AS base
LABEL version="4.1.0"
LABEL description=""
@@ -7,7 +7,10 @@ COPY ["package.json", "./"]
COPY ["yarn.lock", "./"]
FROM base AS builder
RUN yarn install
RUN apk add --no-cache --virtual .gyp python3 make g++ \
&& yarn install \
&& apk del .gyp
COPY ["src/", "./src"]
RUN npm run Prod