Skip to content

Commit

Permalink
build: require Node.js 22 and base container on alpine 3.21
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Jan 21, 2025
1 parent df54dd4 commit a760086
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
*.md
**/*.test.*
**/test.*
botfather-settings
coverage
dist
Dockerfile
init-debug-environment.sh
node_modules
test

botfather-settings
init-debug-environment.sh

# botfiles
additionalEvents
eventfiles
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- uses: actions/checkout@v4
- run: npm ci
- run: npm test
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/node:20-alpine AS builder
FROM docker.io/library/node:22-alpine AS builder
RUN apk upgrade --no-cache
WORKDIR /build
COPY package.json package-lock.json ./
Expand All @@ -7,16 +7,16 @@ COPY . ./
RUN node_modules/.bin/tsc


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


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

WORKDIR /app
ENV NODE_ENV=production
Expand Down

0 comments on commit a760086

Please sign in to comment.