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:
Qin Wenfeng 2015-08-27 13:08:45 +08:00
parent bee79d7528
commit f32f5bfb47

View File

@ -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* \