mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-13 12:23:34 +01:00
Update dockerfile to use node 24
This commit is contained in:
1 parent
83e9a82f8f
commit
8a2a45751e
1 file changed
+4
-4
+4
-4
@@ -2,7 +2,7 @@ ARG NUSQLITE3_DIR="/usr/local/lib/nusqlite3"
|
|||||||
ARG NUSQLITE3_PATH="${NUSQLITE3_DIR}/libnusqlite3.so"
|
ARG NUSQLITE3_PATH="${NUSQLITE3_DIR}/libnusqlite3.so"
|
||||||
|
|
||||||
### STAGE 0: Build client ###
|
### STAGE 0: Build client ###
|
||||||
FROM node:20-alpine AS build-client
|
FROM node:24-alpine AS build-client
|
||||||
|
|
||||||
WORKDIR /client
|
WORKDIR /client
|
||||||
COPY /client /client
|
COPY /client /client
|
||||||
@@ -10,7 +10,7 @@ RUN npm ci && npm cache clean --force
|
|||||||
RUN npm run generate
|
RUN npm run generate
|
||||||
|
|
||||||
### STAGE 1: Compile server on the builder CPU (avoid QEMU SIGILL from tsc on arm64) ###
|
### STAGE 1: Compile server on the builder CPU (avoid QEMU SIGILL from tsc on arm64) ###
|
||||||
FROM --platform=$BUILDPLATFORM node:20-alpine AS compile-server
|
FROM --platform=$BUILDPLATFORM node:24-alpine AS compile-server
|
||||||
|
|
||||||
WORKDIR /server
|
WORKDIR /server
|
||||||
COPY index.js package* tsconfig.server.json /server
|
COPY index.js package* tsconfig.server.json /server
|
||||||
@@ -18,7 +18,7 @@ COPY /server /server/server
|
|||||||
RUN npm ci --include=dev --ignore-scripts && npm run build:server
|
RUN npm ci --include=dev --ignore-scripts && npm run build:server
|
||||||
|
|
||||||
### STAGE 2: Install native server deps for the target arch ###
|
### STAGE 2: Install native server deps for the target arch ###
|
||||||
FROM node:20-alpine AS build-server
|
FROM node:24-alpine AS build-server
|
||||||
|
|
||||||
ARG NUSQLITE3_DIR
|
ARG NUSQLITE3_DIR
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
@@ -50,7 +50,7 @@ RUN case "$TARGETPLATFORM" in \
|
|||||||
RUN npm ci --omit=dev
|
RUN npm ci --omit=dev
|
||||||
|
|
||||||
### STAGE 3: Create minimal runtime image ###
|
### STAGE 3: Create minimal runtime image ###
|
||||||
FROM node:20-alpine
|
FROM node:24-alpine
|
||||||
|
|
||||||
ARG NUSQLITE3_DIR
|
ARG NUSQLITE3_DIR
|
||||||
ARG NUSQLITE3_PATH
|
ARG NUSQLITE3_PATH
|
||||||
|
|||||||
Reference in new issue
Block a user