@@ -10,19 +10,18 @@ USER root
1010# ============================================
1111# Firefox cleanup script and supervisord file
1212# ============================================
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/
1414COPY --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
1616
1717# =========
1818# Firefox
1919# =========
2020ARG 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=""
2222RUN apt-get update -qqy && \
2323 if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
2424 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" ; \
2625 /opt/bin/install-firefox-apt.sh \
2726 && FIREFOX_VERSION=$(echo "-$FIREFOX_VERSION" | sed 's/-latest//' ) \
2827 && apt install -y firefox$FIREFOX_VERSION \
@@ -31,10 +30,11 @@ RUN apt-get update -qqy && \
3130 ln -fs $(which firefox$FIREFOX_VERSION) /usr/bin/firefox ; \
3231 fi ; \
3332 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 " ; \
3534 fi \
3635 else \
37- if [ $FIREFOX_VERSION = "nightly-latest" ]; then \
36+ if [ $FIREFOX_VERSION = "latest" ]; then \
37+ FIREFOX_VERSION="nightly-latest" ; \
3838 /opt/bin/install-firefox-apt.sh \
3939 && FIREFOX_VERSION=$(echo "-$FIREFOX_VERSION" | sed 's/-latest//' ) \
4040 && apt install -y firefox$FIREFOX_VERSION \
@@ -46,15 +46,8 @@ RUN apt-get update -qqy && \
4646 FIREFOX_DOWNLOAD_URL="${FIREFOX_DOWNLOAD_URL}" ; \
4747 fi ; \
4848 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}" ; \
5851 fi \
5952 # Download the language pack for Firefox
6053 && /opt/bin/get_lang_package.sh \
0 commit comments