Skip to content

Commit a760086

Browse files
committed
build: require Node.js 22 and base container on alpine 3.21
1 parent df54dd4 commit a760086

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.dockerignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
*.md
33
**/*.test.*
44
**/test.*
5-
botfather-settings
6-
coverage
75
dist
86
Dockerfile
9-
init-debug-environment.sh
107
node_modules
118
test
129

10+
botfather-settings
11+
init-debug-environment.sh
12+
1313
# botfiles
1414
additionalEvents
1515
eventfiles

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 20
16+
node-version: 22
1717
- uses: actions/checkout@v4
1818
- run: npm ci
1919
- run: npm test

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/library/node:20-alpine AS builder
1+
FROM docker.io/library/node:22-alpine AS builder
22
RUN apk upgrade --no-cache
33
WORKDIR /build
44
COPY package.json package-lock.json ./
@@ -7,16 +7,16 @@ COPY . ./
77
RUN node_modules/.bin/tsc
88

99

10-
FROM docker.io/library/node:20-alpine AS packages
10+
FROM docker.io/library/node:22-alpine AS packages
1111
RUN apk upgrade --no-cache
1212
WORKDIR /build
1313
COPY package.json package-lock.json ./
1414
RUN npm ci --no-audit --no-fund --no-update-notifier --omit=dev
1515

1616

17-
FROM docker.io/library/node:20-alpine AS final
17+
FROM docker.io/library/alpine:3.21 AS final
1818
RUN apk upgrade --no-cache \
19-
&& apk --no-cache add git
19+
&& apk add --no-cache nodejs git
2020

2121
WORKDIR /app
2222
ENV NODE_ENV=production

0 commit comments

Comments
 (0)