@@ -10,19 +10,18 @@ USER root
10
10
# ============================================
11
11
# Firefox cleanup script and supervisord file
12
12
# ============================================
13
- COPY --chown="${SEL_UID}:${SEL_GID}" firefox-cleanup.sh get_lang_package.sh install-firefox-apt.sh /opt/bin/
13
+ COPY --chown="${SEL_UID}:${SEL_GID}" firefox-cleanup.sh get_lang_package.sh install-firefox-apt.sh install-firefox-package.sh /opt/bin/
14
14
COPY --chown="${SEL_UID}:${SEL_GID}" firefox-cleanup.conf /etc/supervisor/conf.d/firefox-cleanup.conf
15
- RUN chmod +x /opt/bin/firefox-cleanup.sh /opt/bin/get_lang_package.sh /opt/bin/install-firefox-apt.sh
15
+ RUN chmod +x /opt/bin/firefox-cleanup.sh /opt/bin/get_lang_package.sh /opt/bin/install-firefox-apt.sh /opt/bin/install-firefox-package.sh
16
16
17
17
# =========
18
18
# Firefox
19
19
# =========
20
20
ARG FIREFOX_VERSION=latest
21
- ARG FIREFOX_DOWNLOAD_URL="https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64-aarch64&lang=en-US "
21
+ ARG FIREFOX_DOWNLOAD_URL=""
22
22
RUN apt-get update -qqy && \
23
23
if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
24
24
if [ $FIREFOX_VERSION = "latest" ] || [ $FIREFOX_VERSION = "beta-latest" ] || [ $FIREFOX_VERSION = "nightly-latest" ] || [ $FIREFOX_VERSION = "devedition-latest" ] || [ $FIREFOX_VERSION = "esr-latest" ]; then \
25
- FIREFOX_DOWNLOAD_URL="https://download.mozilla.org/?product=firefox-$FIREFOX_VERSION-ssl&os=linux64&lang=en-US" ; \
26
25
/opt/bin/install-firefox-apt.sh \
27
26
&& FIREFOX_VERSION=$(echo "-$FIREFOX_VERSION" | sed 's/-latest//' ) \
28
27
&& apt install -y firefox$FIREFOX_VERSION \
@@ -31,10 +30,11 @@ RUN apt-get update -qqy && \
31
30
ln -fs $(which firefox$FIREFOX_VERSION) /usr/bin/firefox ; \
32
31
fi ; \
33
32
else \
34
- FIREFOX_DOWNLOAD_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 " ; \
33
+ FIREFOX_DOWNLOAD_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.deb " ; \
35
34
fi \
36
35
else \
37
- if [ $FIREFOX_VERSION = "nightly-latest" ]; then \
36
+ if [ $FIREFOX_VERSION = "latest" ]; then \
37
+ FIREFOX_VERSION="nightly-latest" ; \
38
38
/opt/bin/install-firefox-apt.sh \
39
39
&& FIREFOX_VERSION=$(echo "-$FIREFOX_VERSION" | sed 's/-latest//' ) \
40
40
&& apt install -y firefox$FIREFOX_VERSION \
@@ -46,15 +46,8 @@ RUN apt-get update -qqy && \
46
46
FIREFOX_DOWNLOAD_URL="${FIREFOX_DOWNLOAD_URL}" ; \
47
47
fi ; \
48
48
fi && \
49
- if [ "$INSTALL_VIA_APT" != "true" ]; then \
50
- apt-get -qqy --no-install-recommends install libavcodec-extra libgtk-3-dev libdbus-glib-1-dev xz-utils \
51
- && wget --no-verbose -O /tmp/firefox.tar.bz2 $FIREFOX_DOWNLOAD_URL \
52
- && rm -rf /opt/firefox \
53
- && tar -C /opt -xjf /tmp/firefox.tar.bz2 || (mv /tmp/firefox.tar.bz2 /tmp/firefox.tar.xz && tar -C /opt -xJf /tmp/firefox.tar.xz) \
54
- && rm -rf /tmp/firefox.tar.bz2 /tmp/firefox.tar.xz \
55
- && mv /opt/firefox /opt/firefox-$FIREFOX_VERSION \
56
- && mkdir -p /opt/firefox-$FIREFOX_VERSION/distribution/extensions \
57
- && ln -fs /opt/firefox-$FIREFOX_VERSION/firefox /usr/bin/firefox ; \
49
+ if [ "${INSTALL_VIA_APT}" != "true" ]; then \
50
+ /opt/bin/install-firefox-package.sh "${FIREFOX_DOWNLOAD_URL}" "${FIREFOX_VERSION}" ; \
58
51
fi \
59
52
# Download the language pack for Firefox
60
53
&& /opt/bin/get_lang_package.sh \
0 commit comments