From fd31a57b1f4fa38499e50112d368becb3c7aaecc Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 20 Apr 2020 22:28:55 -0600 Subject: Remove /etc/profile from final image --- Dockerfile | 1 + config/install.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a1dea96..4f32182 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,5 +8,6 @@ FROM debian:stable-slim ENV PATH="/opt/ruby/bin:${HOME}/.local/bin:${PATH}" RUN apt-get update -y && apt-get install -y libgdbm6 wget libssl1.1 libyaml-0-2 libreadline7 libncurses6 libxml2 COPY --from=ruby-builder /opt/ruby /opt/ruby +RUN rm /etc/profile RUN env RUN spandx help diff --git a/config/install.sh b/config/install.sh index 58c1725..83759f4 100644 --- a/config/install.sh +++ b/config/install.sh @@ -24,5 +24,4 @@ cd rubygems-3.1.2 ruby setup.rb gem install bundler spandx rm -fr /opt/ruby/lib/ruby/gems/**/cache/*.gem -rm /etc/profile echo "Done" -- cgit v1.2.3