mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-11-24 20:05:41 +01:00
Moved to a non-root model.
- Added buildargs to specify the User ID and Group IDs. - entrypoint now defaults to running as 1000:1000 rather then 0:0.
This commit is contained in:
parent
03da194953
commit
42d4c6fd4c
11
Dockerfile
11
Dockerfile
@ -25,7 +25,7 @@ RUN apk add --no-cache --update \
|
||||
unzip
|
||||
|
||||
WORKDIR /server
|
||||
COPY index.js package* /server
|
||||
COPY index.js package* /server/
|
||||
COPY /server /server/server
|
||||
|
||||
RUN case "$TARGETPLATFORM" in \
|
||||
@ -50,7 +50,14 @@ ARG NUSQLITE3_PATH
|
||||
RUN apk add --no-cache --update \
|
||||
tzdata \
|
||||
ffmpeg \
|
||||
tini
|
||||
tini \
|
||||
shadow \
|
||||
&& groupmod -g ${PGID} -n audiobookshelf node\
|
||||
&& usermod -u ${PUID} -l audiobookshelf -d /home/audiobookshelf -m node \
|
||||
&& apk del shadow \
|
||||
&& mkdir -p /config /metadata \
|
||||
&& chown -R audiobookshelf:audiobookshelf /config /metadata \
|
||||
&& chmod a=rwx /config /metadata
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user