Skip to content

Commit

Permalink
Merge pull request #278 from cofacts/fix-build-by-upgrade
Browse files Browse the repository at this point in the history
Fix build by upgrade Node.JS
  • Loading branch information
MrOrz authored May 1, 2022
2 parents 7b88fbe + e0510ec commit 2aeb4a3
Show file tree
Hide file tree
Showing 7 changed files with 15,777 additions and 26,526 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
extends: [
'eslint:recommended',
'plugin:import/errors',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
submodules: true
- uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '18'
cache: 'npm'
- run: npm ci
- run: npm run lint
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Builds production image for rumors-api.
#
FROM node:12-alpine AS builder
FROM node:18-alpine AS builder
WORKDIR /srv/www

# make node_modules cached.
Expand All @@ -17,7 +17,7 @@ RUN node_modules/.bin/babel src -d build
RUN npm prune --production

#########################################
FROM node:12-alpine
FROM node:18-alpine

WORKDIR /srv/www
EXPOSE 5000
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
- "4000:4000"

api:
image: node:12
image: node:18
container_name: rumors-api
depends_on:
- db
Expand Down
Loading

0 comments on commit 2aeb4a3

Please sign in to comment.