aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Pearson <sam@sgp.me.uk>2018-10-01 11:37:49 +0100
committerSam Pearson <sam@sgp.me.uk>2018-10-01 11:37:49 +0100
commit079ec0ce2a5a44df28d2535f8288e1077ca11ac0 (patch)
tree98d52eee2d405670d700ea6aecbcca3cf1e0ee26
parent138f07a6505862b80580f4d05be58485cfd5906a (diff)
[Docker] Copy the preinit file from the local working copy at build
Rather than pulling across the preinit file from master, use the version in the copy of FixMyStreet on the image - this will then match the release actually being built.
-rw-r--r--Dockerfile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index dafb74cfc..e3a747ca1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -22,8 +22,7 @@ RUN /install-site.sh --docker fixmystreet fms 127.0.0.1.xip.io \
&& rm -fr /var/lib/apt/lists/* \
&& rm -fr /home/fms/.cpanm/*
-RUN cd /var/www/fixmystreet/fixmystreet \
- && git show master:bin/docker.preinit > /usr/local/preinit/99-fixmystreet \
+RUN cp /var/www/fixmystreet/fixmystreet/bin/docker.preinit /usr/local/preinit/99-fixmystreet \
&& chmod +x /usr/local/preinit/99-fixmystreet
EXPOSE 9000