Skip to content

Commit

Permalink
chore: move to alpine 3.21
Browse files Browse the repository at this point in the history
Fixes #4064
  • Loading branch information
robertsLando committed Dec 18, 2024
1 parent 6b26217 commit f9167cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- name: Checkout Z-Wave JS UI
Expand Down
1 change: 1 addition & 0 deletions api/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ async function loadCertKey(): Promise<{
try {
const result = await createCertificate([], {
days: 99999,
keySize: 2048,
})

key = result.private
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ARG image=zwave-js-ui

FROM alpine:3.18.4 as base
FROM alpine:3.21.0 AS base

RUN apk add --no-cache \
openssl \
libusb \
tzdata \
eudev \
nodejs=18.20.1-r0
nodejs=22.11.0-r0

# https://pkgs.alpinelinux.org/packages?name=nodejs&branch=edge&repo=&arch=&maintainer=

Expand All @@ -22,7 +22,7 @@ RUN \
build-base \
linux-headers \
python3-dev \
npm=9.6.6-r0
npm

COPY . .

Expand Down Expand Up @@ -68,7 +68,7 @@ FROM base AS runtime
# Copy files from previous build stage
COPY --from=build-zui /usr/src/app /usr/src/app

ENV TAG_NAME=${image_name}
ENV TAG_NAME=${image}

ENV NODE_ENV=production

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ RUN apt-get update && apt-get install -y \
# Copy files from the previous build stage
COPY --from=build-zui /usr/src/app /usr/src/app

ENV TAG_NAME=${image_name}
ENV TAG_NAME=${image}

ENV NODE_ENV=production

Expand Down

0 comments on commit f9167cf

Please sign in to comment.