File tree Expand file tree Collapse file tree 6 files changed +27
-11
lines changed
root/etc/s6-overlay/s6-rc.d Expand file tree Collapse file tree 6 files changed +27
-11
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22
3- FROM ghcr.io/linuxserver/baseimage-alpine:3.20
3+ FROM ghcr.io/linuxserver/baseimage-alpine:3.21
44
55# set version label
66ARG BUILD_DATE
Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22
3- FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
3+ FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21
44
55# set version label
66ARG BUILD_DATE
Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ For more information please see the [official documentation](https://docs.requar
6767
6868This image can be run with a read-only container filesystem. For details please [ read the docs] ( https://docs.linuxserver.io/misc/read-only/ ) .
6969
70+ ## Non-Root Operation
71+
72+ This image can be run with a non-root user. For details please [ read the docs] ( https://docs.linuxserver.io/misc/non-root/ ) .
73+
7074## Usage
7175
7276To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -140,6 +144,7 @@ Containers are configured using parameters passed at runtime (such as those abov
140144| ` -v /config ` | Persistent config files |
141145| ` -v /data ` | Where Wiki.js data is stored. |
142146| ` --read-only=true ` | Run container with a read-only filesystem. Please [ read the docs] ( https://docs.linuxserver.io/misc/read-only/ ) . |
147+ | ` --user=1000:1000 ` | Run container with a non-root user. Please [ read the docs] ( https://docs.linuxserver.io/misc/non-root/ ) . |
143148
144149## Environment variables from files (Docker secrets)
145150
@@ -303,6 +308,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
303308
304309# # Versions
305310
311+ * ** 18.01.25:** - Rebase to Alpine 3.21.
306312* ** 01.06.24:** - Rebase to Alpine 3.20.
307313* ** 23.12.23:** - Rebase to Alpine 3.19.
308314* ** 25.08.22:** - Rebase to Alpine 3.18.
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ opt_param_env_vars:
3030 - {env_var: "DB_USER", env_value: "", desc: "DB username (postgres only)"}
3131 - {env_var: "DB_PASS", env_value: "", desc: "DB password (postgres only)"}
3232readonly_supported : true
33+ nonroot_supported : true
3334# application setup block
3435app_setup_block_enabled : true
3536app_setup_block : |
@@ -81,6 +82,7 @@ init_diagram: |
8182 "wikijs:latest" <- Base Images
8283# changelog
8384changelogs :
85+ - {date: "18.01.25:", desc: "Rebase to Alpine 3.21."}
8486 - {date: "01.06.24:", desc: "Rebase to Alpine 3.20."}
8587 - {date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
8688 - {date: "25.08.22:", desc: "Rebase to Alpine 3.18."}
Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ if [[ ! -f "/config/config.yml" ]]; then
99 cp /defaults/config.yml /config/config.yml
1010fi
1111
12- # permissions
13- lsiown -R abc:abc \
14- /config
12+ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
13+ # permissions
14+ lsiown -R abc:abc \
15+ /config
1516
16- if grep -qe ' /data ' /proc/mounts; then
17- lsiown abc:abc \
18- /data
17+ if grep -qe ' /data ' /proc/mounts; then
18+ lsiown abc:abc \
19+ /data
20+ fi
1921fi
Original file line number Diff line number Diff line change 33
44export CONFIG_FILE="/config/config.yml"
55
6- exec \
7- s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
8- cd /app/wiki s6-setuidgid abc /usr/bin/node server
6+ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
7+ exec \
8+ s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
9+ cd /app/wiki s6-setuidgid abc /usr/bin/node server
10+ else
11+ exec \
12+ s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
13+ cd /app/wiki /usr/bin/node server
14+ fi
You can’t perform that action at this time.
0 commit comments