Skip to content

Commit

Permalink
chore(renovate): Node LTS versioning (#19)
Browse files Browse the repository at this point in the history
* chore(ci): Use LTS tags for node base images

* chore(renovate): LTS node versioning, pin digests

---------

Co-authored-by: Zack Pollard <[email protected]>
  • Loading branch information
bo0tzz and zackpollard authored Dec 1, 2023
1 parent 069e40a commit d71ac47
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:base",
"docker:pinDigests"
],
"packageRules": [
{
"matchDatasources": ["docker"],
"matchPackageNames": ["node"],
"versionCompatibility": "^(?<version>[^-]+)(?<compatibility>-.*)?$",
"versioning": "node"
}
]
}
4 changes: 2 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.10-bookworm as dev
FROM node:iron-bookworm as dev

WORKDIR /usr/src/app

Expand Down Expand Up @@ -65,7 +65,7 @@ ADD --chmod=444 https://download.geonames.org/export/dump/admin2Codes.txt /usr/s
RUN umask 0333 && unzip /usr/src/resources/cities500.zip -d /usr/src/resources/ && \
rm /usr/src/resources/cities500.zip && date --iso-8601=seconds | tr -d "\n" > /usr/src/resources/geodata-date.txt

FROM node:20.10-bookworm-slim as prod
FROM node:iron-bookworm-slim as prod
WORKDIR /usr/src/app

RUN sed -i -e's/ main/ main contrib non-free non-free-firmware/g' /etc/apt/sources.list.d/debian.sources
Expand Down

0 comments on commit d71ac47

Please sign in to comment.