diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-20 22:28:55 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-20 22:28:55 -0600 |
| commit | fd31a57b1f4fa38499e50112d368becb3c7aaecc (patch) | |
| tree | 03fcb7bd2d37acb22b3de8efa9d4168f64aa6f53 | |
| parent | 83ac7915f00d120f09db42ca60316dc745c73cc9 (diff) | |
Remove /etc/profile from final image
| -rw-r--r-- | Dockerfile | 1 | ||||
| -rw-r--r-- | config/install.sh | 1 |
2 files changed, 1 insertions, 1 deletions
@@ -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" |
