mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Upgrade node to 16.6, upgrade yarn to 3.0.0 (#17)
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -3,3 +3,10 @@
|
|||||||
build
|
build
|
||||||
ignore
|
ignore
|
||||||
node_modules
|
node_modules
|
||||||
|
.yarn/*
|
||||||
|
!.yarn/patches
|
||||||
|
!.yarn/releases
|
||||||
|
!.yarn/plugins
|
||||||
|
!.yarn/sdks
|
||||||
|
!.yarn/versions
|
||||||
|
.pnp.*
|
||||||
631
.yarn/releases/yarn-berry.cjs
vendored
Executable file
631
.yarn/releases/yarn-berry.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
3
.yarnrc.yml
Normal file
3
.yarnrc.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
nodeLinker: node-modules
|
||||||
|
|
||||||
|
yarnPath: .yarn/releases/yarn-berry.cjs
|
||||||
16
Dockerfile
16
Dockerfile
@@ -1,4 +1,4 @@
|
|||||||
FROM node:14.15-alpine as build
|
FROM node:16.6-alpine as build
|
||||||
|
|
||||||
WORKDIR /bonob
|
WORKDIR /bonob
|
||||||
|
|
||||||
@@ -10,14 +10,21 @@ COPY package.json .
|
|||||||
COPY register.js .
|
COPY register.js .
|
||||||
COPY tsconfig.json .
|
COPY tsconfig.json .
|
||||||
COPY yarn.lock .
|
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 test --no-cache && \
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM node:14.15-alpine
|
FROM node:16.6-alpine
|
||||||
|
|
||||||
ENV BONOB_PORT=4534
|
ENV BONOB_PORT=4534
|
||||||
|
|
||||||
@@ -28,10 +35,11 @@ WORKDIR /bonob
|
|||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY yarn.lock .
|
COPY yarn.lock .
|
||||||
COPY --from=build /bonob/build/src/* ./
|
COPY --from=build /bonob/build/src/* ./
|
||||||
|
COPY --from=build /bonob/node_modules ./node_modules
|
||||||
COPY web web
|
COPY web web
|
||||||
COPY src/Sonoswsdl-1.19.4-20190411.142401-3.wsdl /bonob/Sonoswsdl-1.19.4-20190411.142401-3.wsdl
|
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
|
USER nobody
|
||||||
|
|
||||||
|
|||||||
@@ -48,8 +48,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -Rf build",
|
"clean": "rm -Rf build",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"dev": "BONOB_PORT=4000 BONOB_URL=http://$(hostname):4000 BONOB_SONOS_SERVICE_NAME=bonobDev BONOB_SONOS_DEVICE_DISCOVERY=true BONOB_SONOS_AUTO_REGISTER=false nodemon ./src/app.ts",
|
"dev": "BONOB_SONOS_SERVICE_NAME=bonobDev BONOB_SONOS_DEVICE_DISCOVERY=true BONOB_SONOS_AUTO_REGISTER=false nodemon ./src/app.ts",
|
||||||
"register-dev": "ts-node ./src/register.ts http://$(hostname):4000",
|
"register-dev": "ts-node ./src/register.ts http://$(hostname):4534",
|
||||||
"test": "jest"
|
"test": "jest --testPathIgnorePatterns=build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user