summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-01-20 14:48:55 -0700
committermo khan <mo.khan@gmail.com>2020-01-20 14:48:55 -0700
commita854fc8a1d06f44aa35eb5e65caddfb7c1e30c1b (patch)
tree784deba9136a639de90f8a26d7557c00849aadf6 /Dockerfile
parent521c453a48c790731cd7f96aa52e55a5912665c7 (diff)
Build a docker image
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index ccecee7..86bc90a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,2 +1,12 @@
FROM alpine:latest
-RUN apk update && apk add bash
+COPY . /opt/spandx/
+ENV PACKAGES bash ruby ruby-bundler ruby-json ruby-rake git
+RUN apk update && \
+ apk add $PACKAGES && \
+ gem build /opt/spandx/*.gemspec && \
+ gem install /opt/spandx/*.gem && \
+ mkdir -p tmp && \
+ rm -fr /var/cache/apk/*
+WORKDIR /scan
+VOLUME /scan
+CMD ["spandx"]