mirror of
https://github.com/woodchen-ink/docker-firefox.git
synced 2025-07-19 06:12:00 +08:00
Added environment variable to specify custom arguments to pass to Firefox.
This commit is contained in:
parent
1e6d352a54
commit
ebe461ade1
@ -90,7 +90,8 @@ RUN \
|
||||
# Set public environment variables.
|
||||
ENV \
|
||||
FF_OPEN_URL= \
|
||||
FF_KIOSK=0
|
||||
FF_KIOSK=0 \
|
||||
FF_CUSTOM_ARGS=
|
||||
|
||||
# Metadata.
|
||||
LABEL \
|
||||
|
10
appdefs.yml
10
appdefs.yml
@ -395,6 +395,16 @@ container:
|
||||
customer-facing displays.
|
||||
type: public
|
||||
default: 0
|
||||
- name: FF_CUSTOM_ARGS
|
||||
description: >-
|
||||
Custom argument(s) to pass when launching {{ app.friendly_name }}.
|
||||
type: public
|
||||
default: 0
|
||||
unraid_template:
|
||||
title: "Custom Arguments"
|
||||
display: advanced
|
||||
required: false
|
||||
mask: false
|
||||
|
||||
# Volumes
|
||||
volumes: []
|
||||
|
@ -20,3 +20,8 @@ fi
|
||||
if [ -n "${FF_OPEN_URL:-}" ]; then
|
||||
echo "$FF_OPEN_URL"
|
||||
fi
|
||||
|
||||
# Custom arguments.
|
||||
if [ -n "${FF_CUSTOM_ARGS:-}" ]; then
|
||||
eval 'for word in '$FF_CUSTOM_ARGS'; do echo "$word"; done'
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user