Skip to content

Commit d7c0866

Browse files
change to ubuntu 22.04
1 parent 6132592 commit d7c0866

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Dockerfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04 AS builder
1+
FROM ubuntu:22.04 AS builder
22
MAINTAINER Daniel Guerra
33

44
# Install packages
@@ -21,7 +21,7 @@ RUN mv /tmp/pulseaudio-* /tmp/pulseaudio-11.1
2121
WORKDIR /tmp/pulseaudio-11.1
2222
RUN dpkg-buildpackage -rfakeroot -uc -b
2323
WORKDIR /tmp
24-
RUN git clone --branch v0.10.0 --recursive https://github.com/neutrinolabs/xrdp.git
24+
RUN git clone --branch v0.10 --recursive https://github.com/neutrinolabs/xrdp.git
2525
WORKDIR /tmp/xrdp
2626
RUN ./bootstrap
2727
RUN ./configure
@@ -36,8 +36,7 @@ RUN make
3636
RUN mkdir -p /tmp/so
3737
RUN cp src/.libs/*.so /tmp/so
3838

39-
FROM ubuntu:20.04
40-
39+
FROM ubuntu:22.04
4140
ARG ADDITIONAL_PACKAGES=""
4241
ENV ADDITIONAL_PACKAGES=${ADDITIONAL_PACKAGES}
4342
ENV TZ="Etc/UTC"
@@ -46,7 +45,6 @@ RUN apt update && apt install -y software-properties-common apt-utils
4645
RUN apt -y dist-upgrade && apt install -y \
4746
ca-certificates \
4847
crudini \
49-
firefox \
5048
less \
5149
locales \
5250
openssh-server \
@@ -77,6 +75,14 @@ RUN apt -y dist-upgrade && apt install -y \
7775
apt-get autoremove -yy && \
7876
rm -rf /var/cache/apt /var/lib/apt/lists && \
7977
mkdir -p /var/lib/xrdp-pulseaudio-installer
78+
RUN install -d -m 0755 /etc/apt/keyrings && \
79+
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | tee /etc/apt/keyrings/packages.mozilla.org.asc && \
80+
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"}' && \
81+
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list && \
82+
printf 'Package: *\nPin: origin packages.mozilla.org\nPin-Priority: 1000\n' | sudo tee /etc/apt/preferences.d/mozilla && \
83+
echo 'Unattended-Upgrade::Allowed-Origins:: "packages.mozilla.org:mozilla";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox && \
84+
apt update && apt install -y firefox && \
85+
rm -rf /var/cache/apt /var/lib/apt/lists
8086
COPY --from=builder /tmp/so/module-xrdp-source.so /var/lib/xrdp-pulseaudio-installer
8187
COPY --from=builder /tmp/so/module-xrdp-sink.so /var/lib/xrdp-pulseaudio-installer
8288
ADD bin /usr/bin

0 commit comments

Comments
 (0)