Commit 1d4a524

mo khan <mo.khan@gmail.com>
2020-01-23 22:22:03
Update dockerfile to scan gemfiles for different versions of bundler tag: v0.1.4
1 parent 4e79688
CHANGELOG.md
@@ -11,9 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [0.1.4] - 2020-01-22
 ### Added
-- add dependency on bundler
+- Add dependency on bundler
 - Scan nuget `packages.config` files
 - Scan dotnet `*.csproj` files
+- Pull ruby gem license info from rubygems.org API V2.
 
 ## [0.1.3] - 2020-01-16
 ### Added
Dockerfile
@@ -1,12 +1,13 @@
 FROM alpine:latest
-COPY . /opt/spandx/
+WORKDIR /scan
 ENV PACKAGES build-base cmake bash ruby ruby-dev ruby-bundler ruby-json ruby-rake git libxml2-dev openssl-dev
+COPY . /opt/spandx/
 RUN apk update && \
   apk add $PACKAGES && \
-  gem build /opt/spandx/*.gemspec && \
-  gem install /opt/spandx/*.gem && \
-  mkdir -p tmp && \
+  gem update --system && \
+  cd /opt/spandx/ && \
+  gem build *.gemspec && \
+  gem install --no-document *.gem && \
   rm -fr /var/cache/apk/*
-WORKDIR /scan
 VOLUME /scan
 CMD ["spandx"]