summaryrefslogtreecommitdiffstats
path: root/policy-drools
diff options
context:
space:
mode:
Diffstat (limited to 'policy-drools')
-rw-r--r--policy-drools/Dockerfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/policy-drools/Dockerfile b/policy-drools/Dockerfile
index a360b012..3f3dc77e 100644
--- a/policy-drools/Dockerfile
+++ b/policy-drools/Dockerfile
@@ -7,15 +7,17 @@ RUN mkdir -p /opt/app/policy/opt /tmp/policy-install && \
WORKDIR /tmp/policy-install
COPY install-drools.zip apps.zip docker-install.sh do-start.sh wait-for-port.sh ./
-ADD http://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/4.2.0/flyway-commandline-4.2.0.tar.gz /opt/app
RUN unzip install-drools.zip && \
unzip apps.zip && \
rm install-drools.zip apps.zip && \
chown -R policy * && \
chmod +x *.sh && \
- ln -s /opt/app/flyway-4.2.0 /opt/app/flyway && \
- ln -s /opt/app/flyway/flyway /usr/local/bin
+ wget http://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/4.2.0/flyway-commandline-4.2.0.tar.gz && \
+ tar -C /opt/app -xzf flyway-commandline-4.2.0.tar.gz && \
+ chmod +x /opt/app/flyway-4.2.0/flyway && \
+ ln -f -s /opt/app/flyway-4.2.0 /opt/app/flyway && \
+ ln -f -s /opt/app/flyway/flyway /usr/local/bin
USER policy
CMD ./do-start.sh