Skip to content

Instantly share code, notes, and snippets.

@yogeek
Forked from rafaeltuelho/install-gosu-centos.md
Created August 16, 2017 11:42
Show Gist options
  • Save yogeek/43de59eaa8ea5813c2007d23f3812bef to your computer and use it in GitHub Desktop.
Save yogeek/43de59eaa8ea5813c2007d23f3812bef to your computer and use it in GitHub Desktop.
installing gosu in a centos-based docker image
# Setup gosu for easier command execution
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
    && curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-amd64" \
    && curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment