summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-12 16:06:44 -0600
committermo khan <mo.khan@gmail.com>2020-03-12 16:06:44 -0600
commit01c558c3809a584dccee42527ba0ddfd731e255d (patch)
treed39486bd4b90f82378b4797b29b9880f76445cb9 /Dockerfile
parent1b22d8e623d0ecd1fd977dd098f39a78c81a7db4 (diff)
Install the latest index in the docker image
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index e6c0b7e..f0f5043 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
FROM alpine:latest
WORKDIR /scan
-ENV PACKAGES build-base bash ruby ruby-dev git libxml2-dev openssl-dev
+ENV PACKAGES build-base bash ruby ruby-dev ruby-json git libxml2-dev openssl-dev
COPY . /opt/spandx/
RUN apk update && \
apk add $PACKAGES && \
@@ -8,6 +8,7 @@ RUN apk update && \
cd /opt/spandx/ && \
gem build *.gemspec && \
gem install --no-document *.gem && \
+ spandx index update && \
rm -r /root/.gem && \
rm -fr /var/cache/apk/*
VOLUME /scan