Skip to content

Commit a50fba2

Browse files
authored
Update Node 22, Chromium 138, Alpine 3.22 (#441)
* Update to Node 22 * Update dependencies
1 parent c64d897 commit a50fba2

File tree

10 files changed

+1441
-970
lines changed

10 files changed

+1441
-970
lines changed

.github/workflows/build_docker_image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Build and push master (Alpine)
4343
if: ${{ github.ref == 'refs/heads/master' }}
44-
uses: docker/build-push-action@v5
44+
uses: docker/build-push-action@v6
4545
with:
4646
provenance: false # enable later when runtime support is better
4747
target: deploy
@@ -60,7 +60,7 @@ jobs:
6060

6161
- name: Build and push master (Debian)
6262
if: ${{ github.ref == 'refs/heads/master' }}
63-
uses: docker/build-push-action@v5
63+
uses: docker/build-push-action@v6
6464
with:
6565
provenance: false # enable later when runtime support is better
6666
target: deploy
@@ -80,7 +80,7 @@ jobs:
8080

8181
- name: Build and push dev
8282
if: ${{ github.ref == 'refs/heads/develop' }}
83-
uses: docker/build-push-action@v5
83+
uses: docker/build-push-action@v6
8484
with:
8585
provenance: false # enable later when runtime support is better
8686
target: deploy

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
########
22
# BASE
33
########
4-
FROM node:18-alpine3.20 AS base
4+
FROM node:22-alpine3.22 AS base
55

66
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
77

@@ -13,11 +13,11 @@ WORKDIR /usr/app
1313
FROM base AS deps
1414

1515
# Go to https://hub.docker.com/_/node/ and note the latest stable Alpine version available (e.g. alpine3.19).
16-
# Go to https://pkgs.alpinelinux.org/package/v3.20/community/x86_64/chromium (replace with the latest Alpine version)
16+
# Go to https://pkgs.alpinelinux.org/package/v3.22/community/x86_64/chromium (replace with the latest Alpine version)
1717
# and note the Chromium version available. Then go to https://pptr.dev/chromium-support
1818
# and find the latest version that supports that Chromium version, and update it in the package.json.
1919
RUN apk add --no-cache \
20-
'chromium=~131' \
20+
'chromium=~138' \
2121
ca-certificates \
2222
ttf-freefont \
2323
# App dependencies
@@ -70,7 +70,7 @@ LABEL org.opencontainers.image.title="epicgames-freegames-node" \
7070
org.opencontainers.image.name="epicgames-freegames-node" \
7171
org.opencontainers.image.revision=${COMMIT_SHA} \
7272
org.opencontainers.image.ref.name=${BRANCH} \
73-
org.opencontainers.image.base.name="node:18-alpine3.19" \
73+
org.opencontainers.image.base.name="node:22-alpine3.22" \
7474
org.opencontainers.image.version="latest"
7575

7676
ENV NODE_ENV=production \

Dockerfile.debian

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
########
22
# BASE
33
########
4-
FROM node:18-bookworm-slim AS base
4+
FROM node:22-bookworm-slim AS base
55

66
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
77

@@ -75,7 +75,7 @@ LABEL org.opencontainers.image.title="epicgames-freegames-node" \
7575
org.opencontainers.image.name="epicgames-freegames-node" \
7676
org.opencontainers.image.revision=${COMMIT_SHA} \
7777
org.opencontainers.image.ref.name=${BRANCH} \
78-
org.opencontainers.image.base.name="node:18-bookworm-slim" \
78+
org.opencontainers.image.base.name="node:22-bookworm-slim" \
7979
org.opencontainers.image.version="debian"
8080

8181
ENV NODE_ENV=production \

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ If for some reason you don't want to use Docker to run this tool you can run it
225225
* Or download and unpack ZIP archive: [epicgames-freegames-node](https://github.com/claabs/epicgames-freegames-node/archive/master.zip)
226226
1. Create `config` folder in the cloned/unpacked directory
227227
1. Create [JSON configuration](#json-configuration)
228-
1. [Install Node.js 18](https://nodejs.org/) or higher
228+
1. [Install Node.js 22](https://nodejs.org/) or higher
229229
1. Install Node.js dependencies
230230
* Start terminal and navigate to cloned/unpacked directory
231231
* Run `npm i`

0 commit comments

Comments
 (0)