node v20 → v18

This commit is contained in:
Emile Nijssen 2023-12-18 21:41:51 +01:00
parent 94d0016674
commit 12c69ee949
5 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '20'
node-version: '18'
- run: |
cd src

View File

@ -1,4 +1,4 @@
FROM docker.io/library/node:20-alpine AS build_node_modules
FROM docker.io/library/node:18-alpine AS build_node_modules
# Copy Web UI
COPY src/ /app/
@ -7,7 +7,7 @@ RUN npm ci --production
# Copy build result to a new image.
# This saves a lot of disk space.
FROM docker.io/library/node:20-alpine
FROM docker.io/library/node:18-alpine
COPY --from=build_node_modules /app /app
# Move node_modules one directory up, so during development

View File

@ -6,5 +6,5 @@
"5": "Many small improvements & feature requests. Enjoy!",
"6": "Many small performance improvements & bug fixes. Enjoy!",
"7": "Improved the look & performance of the upload/download chart.",
"8": "Updated to Node.js v20."
"8": "Updated to Node.js v18."
}

4
src/package-lock.json generated
View File

@ -20,7 +20,7 @@
"eslint-config-athom": "^2.1.0"
},
"engines": {
"node": "20"
"node": "18"
}
},
"node_modules/@aashutoshrathi/word-wrap": {
@ -3774,4 +3774,4 @@
}
}
}
}
}

View File

@ -23,6 +23,6 @@
"eslint-config-athom": "^2.1.0"
},
"engines": {
"node": "20"
"node": "18"
}
}