mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-01-17 08:29:37 +00: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
1 changed files with 9 additions and 2 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -25,7 +25,7 @@ RUN apk add --no-cache --update \
|
||||||
unzip
|
unzip
|
||||||
|
|
||||||
WORKDIR /server
|
WORKDIR /server
|
||||||
COPY index.js package* /server
|
COPY index.js package* /server/
|
||||||
COPY /server /server/server
|
COPY /server /server/server
|
||||||
|
|
||||||
RUN case "$TARGETPLATFORM" in \
|
RUN case "$TARGETPLATFORM" in \
|
||||||
|
|
@ -50,7 +50,14 @@ ARG NUSQLITE3_PATH
|
||||||
RUN apk add --no-cache --update \
|
RUN apk add --no-cache --update \
|
||||||
tzdata \
|
tzdata \
|
||||||
ffmpeg \
|
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
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue