[docker] use gosu from Ubuntu since docker image is using 18.04 (#2656)

This commit is contained in:
Gautier Hattenberger
2021-03-25 09:48:52 +01:00
committed by GitHub
parent 31fe70c581
commit daba128c6a

View File

@@ -21,18 +21,12 @@ RUN useradd --shell /bin/bash -u $USER_ID -o -c "Paparazzi Docker user" -m $USER
# set gtk theme
RUN echo include \"/usr/share/themes/Ambiance/gtk-2.0/gtkrc\" > /home/$USERNAME/.gtkrc-2.0
# handle permissions for docker volumes by dynamically changing the id of user pprz to LOCAL_USER_ID (default 1000)
# this uses https://github.com/tianon/gosu/
ENV GOSU_VERSION 1.9
RUN set -x \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu \
RUN set -eux \
&& apt-get update \
&& apt-get install -y gosu \
&& rm -rf /var/lib/apt/lists/* \
&& gosu nobody true
COPY entrypoint.sh /usr/local/bin/entrypoint.sh