Skip to content

Commit 4b00421

Browse files
committed
Rebase to 3.21
1 parent ab97482 commit 4b00421

File tree

6 files changed

+27
-10
lines changed

6 files changed

+27
-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
@@ -66,6 +66,10 @@ The architectures supported by this image are:
6666

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

69+
## Non-Root Operation
70+
71+
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
72+
6973
## Usage
7074

7175
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -118,6 +122,7 @@ Containers are configured using parameters passed at runtime (such as those abov
118122
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
119123
| `-v /config` | Persistent config files |
120124
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
125+
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
121126

122127
## Environment variables from files (Docker secrets)
123128

@@ -281,6 +286,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
281286

282287
## Versions
283288

289+
* **24.12.24:** - Rebase to Alpine 3.21.
284290
* **06.06.24:** - Rebase to Alpine 3.20.
285291
* **23.12.23:** - Rebase to Alpine 3.19.
286292
* **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
@@ -19,6 +19,7 @@ param_usage_include_ports: true
1919
param_ports:
2020
- {external_port: "6767", internal_port: "6767", port_desc: "Allows HTTP access to the internal webserver."}
2121
readonly_supported: true
22+
nonroot_supported: true
2223
# application setup block
2324
app_setup_block_enabled: true
2425
app_setup_block: |
@@ -69,6 +70,7 @@ init_diagram: |
6970
"bazarr:development" <- Base Images
7071
# changelog
7172
changelogs:
73+
- {date: "24.12.24:", desc: "Rebase to Alpine 3.21."}
7274
- {date: "06.06.24:", desc: "Rebase to Alpine 3.20."}
7375
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
7476
- {date: "19.09.23:", desc: "Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar)."}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
23

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

3-
exec \
4-
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 6767" \
5-
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)