summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-09-12 15:49:29 -0600
committermo khan <mo.khan@gmail.com>2019-09-12 16:07:45 -0600
commit526a18887f4bfdcf7d34a86cc208520b87859dfc (patch)
tree5643ac4d6cc8f77daec2d9cb308a27707427fb0d /Dockerfile
parentfa7a0dd6496b119b6f143ef8deba177b16f53d1c (diff)
Add V2 report
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index aea5817..1d9542b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -22,9 +22,6 @@ RUN apt-get update && \
libpq-dev libmysqlclient-dev realpath python3-dev python3-pip && \
rm -rf /var/lib/apt/lists/*
-COPY . /opt/license-management/
-RUN bash -lc "cd /opt/license-management && gem build *.gemspec && gem install *.gem"
-
# Don't load RVM automatically, it doesn't work with GitLab-CI
RUN mv /etc/profile.d/rvm.sh /rvm.sh
@@ -50,5 +47,7 @@ ENV LM_REPORT_VERSION ${LM_REPORT_VERSION:-1}
COPY test /test
COPY run.sh html2json.js /
+COPY . /opt/license-management/
+RUN bash -lc "source /rvm.sh && cd /opt/license-management && gem build *.gemspec && gem install *.gem"
ENTRYPOINT ["/run.sh"]