# Install gosu. https://github.com/tianon/gosu
ENV GOSU_VERSION=1.11
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64" \
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64.asc" \
&& gpg --verify /usr/local/bin/gosu.asc \
&& rm /usr/local/bin/gosu.asc \
&& rm -r /root/.gnupg/ \
&& chmod +x /usr/local/bin/gosu \
# Verify that the binary works
&& gosu nobody true
Last active
February 23, 2022 04:56
-
-
Save rafaeltuelho/6b29827a9337f06160a9 to your computer and use it in GitHub Desktop.
installing gosu on a centos docker box
Thanks @adveres
thanks!!!
Thanks!
2021.07.02
Succeeded.
ENV GOSU_VERSION=1.11
RUN gpg --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64" \
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64.asc" \
&& gpg --verify /usr/local/bin/gosu.asc \
&& rm /usr/local/bin/gosu.asc \
&& rm -r /root/.gnupg/ \
&& chmod +x /usr/local/bin/gosu \
# Verify that the binary works
&& gosu nobody true
Changed:
--keyserver hkps://keys.openpgp.org
Ref. https://github.com/tianon/gosu/blob/master/INSTALL.md
Cudo 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Javaprogramer, Docker commands are not valid Linux command-line commands. In this case, remove the
RUN
command before pasting it into a terminal.Also, thank you @rafaeltuelho! I have modified your original snippet like so.
1.11
is newest as of 10/24/2018.