mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-11-24 20:05:41 +01:00
parent
0c7b738b7c
commit
b20a317c6d
@ -1,3 +1,4 @@
|
||||
ARG BASE_PATH=""
|
||||
ARG NUSQLITE3_DIR="/usr/local/lib/nusqlite3"
|
||||
ARG NUSQLITE3_PATH="${NUSQLITE3_DIR}/libnusqlite3.so"
|
||||
|
||||
@ -6,6 +7,7 @@ FROM node:20-alpine AS build-client
|
||||
|
||||
WORKDIR /client
|
||||
COPY /client /client
|
||||
ENV ROUTER_BASE_PATH=${BASE_PATH}
|
||||
RUN npm ci && npm cache clean --force
|
||||
RUN npm run generate
|
||||
|
||||
@ -38,6 +40,7 @@ RUN case "$TARGETPLATFORM" in \
|
||||
unzip /tmp/library.zip -d $NUSQLITE3_DIR && \
|
||||
rm /tmp/library.zip
|
||||
|
||||
ENV ROUTER_BASE_PATH=${BASE_PATH}
|
||||
RUN npm ci --only=production
|
||||
|
||||
### STAGE 2: Create minimal runtime image ###
|
||||
@ -61,6 +64,7 @@ COPY --from=build-server ${NUSQLITE3_PATH} ${NUSQLITE3_PATH}
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENV ROUTER_BASE_PATH=${BASE_PATH}
|
||||
ENV PORT=80
|
||||
ENV NODE_ENV=production
|
||||
ENV CONFIG_PATH="/config"
|
||||
|
||||
@ -1,7 +1,11 @@
|
||||
### EXAMPLE DOCKER COMPOSE ###
|
||||
services:
|
||||
audiobookshelf:
|
||||
image: ghcr.io/advplyr/audiobookshelf:latest
|
||||
image: audiobookshelf
|
||||
build:
|
||||
context: .
|
||||
#args:
|
||||
# BASE_PATH: /audiobooks
|
||||
# ABS runs on port 13378 by default. If you want to change
|
||||
# the port, only change the external port, not the internal port
|
||||
ports:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user