Skip to content

Commit

Permalink
default to node 14 for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Oct 23, 2021
1 parent 1b461e2 commit 006eb64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# -- trivial container for bgpalerter
FROM node:12-alpine as build
# -- trivial container for BGPalerter
FROM node:14-alpine as build

WORKDIR /opt/bgpalerter
COPY . .

# Makes the final image respect /etc/timezone configuration
RUN apk add --no-cache tzdata

RUN npm install
RUN npm ci

ENTRYPOINT ["npm"]
CMD ["run", "serve"]
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ npm ci --silent

npm run compile

./node_modules/.bin/pkg ./dist/package.json --targets node12-win-x64 --output bin/bgpalerter-win-x64 --loglevel=error
./node_modules/.bin/pkg ./dist/package.json --targets node14-win-x64 --output bin/bgpalerter-win-x64 --loglevel=error

./node_modules/.bin/pkg ./dist/package.json --targets node12-linux-x64 --output bin/bgpalerter-linux-x64 --loglevel=error
./node_modules/.bin/pkg ./dist/package.json --targets node14-linux-x64 --output bin/bgpalerter-linux-x64 --loglevel=error

./node_modules/.bin/pkg ./dist/package.json --targets node12-macos-x64 --output bin/bgpalerter-macos-x64 --loglevel=error
./node_modules/.bin/pkg ./dist/package.json --targets node14-macos-x64 --output bin/bgpalerter-macos-x64 --loglevel=error

echo "--> BGPalerter compiled in bin/ (ignore the warnings about files that cannot be resolved)."

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"./bin/config.yml"
],
"targets": [
"node12"
"node14"
]
},
"optionalDependencies": {
Expand Down

0 comments on commit 006eb64

Please sign in to comment.