mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
replace latest with FIREFOX_VERSION and add LANG
Fix FIREFOX_VERSION, and it will not fail to build when latest version number change. LANG to choose a different language. Check https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/40.0.2/linux-x86_64/ to see more.
This commit is contained in:
parent
bee79d7528
commit
f32f5bfb47
|
@ -15,9 +15,10 @@ RUN sed -i.bak 's/sid main/sid main contrib/g' /etc/apt/sources.list && \
|
|||
--no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV FIREFOX_VERSION 40.0
|
||||
ENV FIREFOX_VERSION 40.0.2
|
||||
ENV LANG en-US
|
||||
|
||||
RUN curl -sSL "https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/latest/linux-x86_64/en-US/firefox-${FIREFOX_VERSION}.tar.bz2" -o /tmp/firefox.tar.bz2 \
|
||||
RUN curl -sSL "https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/${LANG}/firefox-${FIREFOX_VERSION}.tar.bz2" -o /tmp/firefox.tar.bz2 \
|
||||
&& mkdir -p /opt/firefox \
|
||||
&& tar -xjf /tmp/firefox.tar.bz2 -C /opt/firefox --strip-components 1 \
|
||||
&& rm /tmp/firefox.tar.bz2* \
|
||||
|
|
Loading…
Reference in New Issue
Block a user