DEV: Install latest pups via gem instead of git clone (#599)
authorGabe Pacuilla <gabe@discourse.org>
Fri, 28 Jan 2022 17:37:03 +0000 (12:37 -0500)
committerGitHub <noreply@github.com>
Fri, 28 Jan 2022 17:37:03 +0000 (12:37 -0500)
image/base/slim.Dockerfile

index 9ed97f428259675a7aa61d088210ef37afd580ae..aff0c122a820a91b751f5f4676ff2afe2a1674f4 100644 (file)
@@ -87,9 +87,10 @@ RUN echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
 
 RUN gem update --system
 
-RUN gem install bundler --force &&\
-    rm -rf /usr/local/share/ri/2.7.5/system &&\
-    cd / && git clone https://github.com/discourse/pups.git
+RUN gem install bundler pups --force &&\
+    mkdir -p /pups/bin/ &&\
+    ln -s /usr/local/bin/pups /pups/bin/pups &&\
+    rm -rf /usr/local/share/ri/2.7.5/system
 
 ADD install-redis /tmp/install-redis
 RUN /tmp/install-redis