Skip to content

Commit b3206c2

Browse files
authored
Merge pull request #147 from linuxserver/master-3.21
2 parents f728253 + 9ee3fc7 commit b3206c2

File tree

6 files changed

+25
-10
lines changed

6 files changed

+25
-10
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FROM ghcr.io/linuxserver/unrar:latest AS unrar
44

5-
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
5+
FROM ghcr.io/linuxserver/baseimage-alpine:3.21
66

77
# set version label
88
ARG BUILD_DATE
@@ -53,7 +53,7 @@ RUN \
5353
pip install -U --no-cache-dir \
5454
pip \
5555
wheel && \
56-
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ \
56+
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.21/ \
5757
-r /app/bazarr/bin/requirements.txt \
5858
-r /app/bazarr/bin/postgres-requirements.txt && \
5959
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \

Dockerfile.aarch64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar
44

5-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
5+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21
66

77
# set version label
88
ARG BUILD_DATE
@@ -53,7 +53,7 @@ RUN \
5353
pip install -U --no-cache-dir \
5454
pip \
5555
wheel && \
56-
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ \
56+
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.21/ \
5757
-r /app/bazarr/bin/requirements.txt \
5858
-r /app/bazarr/bin/postgres-requirements.txt && \
5959
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ This image provides various versions that are available via tags. Please read th
7575

7676
This image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).
7777

78+
## Non-Root Operation
79+
80+
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
81+
7882
## Usage
7983

8084
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -133,6 +137,7 @@ Containers are configured using parameters passed at runtime (such as those abov
133137
| `-v /movies` | Location of your movies |
134138
| `-v /tv` | Location of your TV Shows |
135139
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
140+
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
136141

137142
## Environment variables from files (Docker secrets)
138143

@@ -296,6 +301,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
296301

297302
## Versions
298303

304+
* **24.12.24:** - Rebase to Alpine 3.21.
299305
* **24.06.24:** - Rebase to Alpine 3.20.
300306
* **23.12.23:** - Rebase to Alpine 3.19.
301307
* **19.09.23:** - Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar).

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ opt_param_volumes:
2727
- {vol_path: "/movies", vol_host_path: "/path/to/movies", desc: "Location of your movies"}
2828
- {vol_path: "/tv", vol_host_path: "/path/to/tv", desc: "Location of your TV Shows"}
2929
readonly_supported: true
30+
nonroot_supported: true
3031
# application setup block
3132
app_setup_block_enabled: true
3233
app_setup_block: |
@@ -77,6 +78,7 @@ init_diagram: |
7778
"bazarr:latest" <- Base Images
7879
# changelog
7980
changelogs:
81+
- {date: "24.12.24:", desc: "Rebase to Alpine 3.21."}
8082
- {date: "24.06.24:", desc: "Rebase to Alpine 3.20."}
8183
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
8284
- {date: "19.09.23:", desc: "Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar)."}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
# permissions
5-
lsiown -R abc:abc \
6-
/config
4+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
5+
lsiown -R abc:abc \
6+
/config
7+
fi
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
exec \
5-
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 6767" \
6-
cd /app/bazarr/bin s6-setuidgid abc python3 /app/bazarr/bin/bazarr.py --no-update --config /config
4+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
5+
exec \
6+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 6767" \
7+
cd /app/bazarr/bin s6-setuidgid abc python3 /app/bazarr/bin/bazarr.py --no-update --config /config
8+
else
9+
exec \
10+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 6767" \
11+
cd /app/bazarr/bin python3 /app/bazarr/bin/bazarr.py --no-update --config /config
12+
fi

0 commit comments

Comments
 (0)