AZILS commited on
Commit
de5fc35
verified
1 Parent(s): e5e36ab

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -9,6 +9,7 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
9
  apt-get update && apt-get install -y --no-install-recommends \
10
  curl \
11
  ca-certificates \
 
12
  sudo \
13
  git \
14
  git-lfs \
@@ -29,13 +30,14 @@ RUN add-apt-repository ppa:flexiondotorg/nvtop && \
29
  apt-get upgrade -y && \
30
  apt-get install -y --no-install-recommends nvtop
31
 
32
- # Importer la cl茅 GPG pour le d茅p么t Mozilla Firefox
33
  RUN install -d -m 0755 /etc/apt/keyrings && \
34
- wget -qO- https://packages.mozilla.org/keys/mozilla-archive-key-pub.asc | gpg --dearmor | tee /etc/apt/keyrings/mozilla-archive.gpg > /dev/null && \
35
- echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/mozilla-archive.gpg] http://packages.mozilla.org/pub/mozilla.org/firefox/releases/latest/ubuntu/ focal main" | tee /etc/apt/sources.list.d/mozilla.list
36
-
37
- RUN apt-get update && \
 
38
  apt-get install -y firefox
 
39
 
40
  RUN yes | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
41
 
 
9
  apt-get update && apt-get install -y --no-install-recommends \
10
  curl \
11
  ca-certificates \
12
+ wget \
13
  sudo \
14
  git \
15
  git-lfs \
 
30
  apt-get upgrade -y && \
31
  apt-get install -y --no-install-recommends nvtop
32
 
 
33
  RUN install -d -m 0755 /etc/apt/keyrings && \
34
+ wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null && \
35
+ gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); if($0 == "35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3") print "\nThe key fingerprint matches ("$0").\n"; else print "\nVerification failed: the fingerprint ("$0") does not match the expected one.\n"}' && \
36
+ echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null && \
37
+ echo 'Package: *\nPin: origin packages.mozilla.org\nPin-Priority: 1000\n' | tee /etc/apt/preferences.d/mozilla && \
38
+ apt-get update && \
39
  apt-get install -y firefox
40
+
41
 
42
  RUN yes | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
43