Skip to content

Commit

Permalink
add WEBUI_PORTS
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Feb 1, 2024
1 parent fde780b commit e725ba8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions linux-amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ARG UPSTREAM_DIGEST_AMD64

FROM ${UPSTREAM_IMAGE}@${UPSTREAM_DIGEST_AMD64}
EXPOSE 6767
ENV WEBUI_PORTS="6767/tcp,6767/udp"

RUN apk add --no-cache mediainfo ffmpeg python3 py3-lxml py3-numpy py3-gevent py3-cryptography py3-setuptools py3-psycopg2 py3-pillow unzip && \
apk add --no-cache --virtual=build-dependencies py3-pip gcc python3-dev musl-dev && \
Expand Down
1 change: 1 addition & 0 deletions linux-arm64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ARG UPSTREAM_DIGEST_ARM64

FROM ${UPSTREAM_IMAGE}@${UPSTREAM_DIGEST_ARM64}
EXPOSE 6767
ENV WEBUI_PORTS="6767/tcp,6767/udp"

RUN apk add --no-cache mediainfo ffmpeg python3 py3-lxml py3-numpy py3-gevent py3-cryptography py3-setuptools py3-psycopg2 py3-pillow unzip && \
apk add --no-cache --virtual=build-dependencies py3-pip gcc python3-dev musl-dev && \
Expand Down
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/init-setup-app/run
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ echo "
----------------------------------------------------------------------
ENVIRONMENT APP
----------------------------------------------------------------------

WEBUI_PORTS=${WEBUI_PORTS}
----------------------------------------------------------------------
"
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/service-bazarr/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

umask "${UMASK}"

exec s6-setuidgid hotio python3 "${APP_DIR}/bin/bazarr.py" --no-update --config "${CONFIG_DIR}"
exec s6-setuidgid hotio python3 "${APP_DIR}/bin/bazarr.py" --no-update --config "${CONFIG_DIR}" --port "${WEBUI_PORTS%%/*}"

0 comments on commit e725ba8

Please sign in to comment.