Upgrade node to 16.6, upgrade yarn to 3.0.0 (#17)

This commit is contained in:
Simon J
2021-08-13 19:11:58 +10:00
committed by GitHub
parent 96d283d35e
commit 66b6f24e61
7 changed files with 8302 additions and 5470 deletions

View File

@@ -1,4 +1,4 @@
FROM node:14.15-alpine as build
FROM node:16.6-alpine as build
WORKDIR /bonob
@@ -10,14 +10,21 @@ COPY package.json .
COPY register.js .
COPY tsconfig.json .
COPY yarn.lock .
COPY .yarnrc.yml .
COPY .yarn/releases ./.yarn/releases
RUN yarn install && \
RUN apk add --no-cache --update --virtual .gyp \
vips-dev \
python3 \
make \
g++ && \
yarn install --immutable && \
yarn test --no-cache && \
yarn build
FROM node:14.15-alpine
FROM node:16.6-alpine
ENV BONOB_PORT=4534
@@ -28,10 +35,11 @@ WORKDIR /bonob
COPY package.json .
COPY yarn.lock .
COPY --from=build /bonob/build/src/* ./
COPY --from=build /bonob/node_modules ./node_modules
COPY web web
COPY src/Sonoswsdl-1.19.4-20190411.142401-3.wsdl /bonob/Sonoswsdl-1.19.4-20190411.142401-3.wsdl
RUN yarn install --prod
RUN apk add --no-cache --update vips
USER nobody