diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-14 23:08:18 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-14 23:08:18 -0600 |
| commit | c907207701c5789ee8bc9eb92494806a9d5d15d3 (patch) | |
| tree | 617ec5f39d3f6102e644442f101683e3b8576efc /Dockerfile | |
| parent | bdcc78c5944b1cfa14f7d92276cc0658f415e60c (diff) | |
Build a smaller ruby image
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,4 +1,11 @@ -FROM debian:stable-slim +FROM debian:stable-slim as ruby-builder +ENV PATH="/opt/ruby/bin:${HOME}/.local/bin:${PATH}" WORKDIR /root COPY config /root RUN bash /root/install.sh + +FROM debian:stable-slim +ENV PATH="/opt/ruby/bin:${HOME}/.local/bin:${PATH}" +ENV RUBYLIB="/opt/spandx-gitlab/lib" +RUN apt-get update -y && apt-get install -y libgdbm6 wget libssl1.1 libyaml-0-2 libreadline7 +COPY --from=ruby-builder /opt/ruby /opt/ruby |
