aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..1bf885238
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,29 @@
+FROM jgoerzen/debian-base-standard:stretch
+MAINTAINER sysadmin@mysociety.org
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get -qq update \
+ && apt-get -qq -y install ca-certificates \
+ && wget -O install-site.sh --no-verbose https://raw.githubusercontent.com/mysociety/commonlib/master/bin/install-site.sh \
+ && chmod +x /install-site.sh
+
+RUN /install-site.sh --docker fixmystreet fms 127.0.0.1.xip.io \
+ && apt-get purge -y --auto-remove \
+ make \
+ g++ \
+ libexpat1-dev \
+ libssl-dev \
+ zlib1g-dev \
+ postgresql-server-dev-all \
+ exim4-daemon-light \
+ && apt-get -y clean \
+ && 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 \
+ && chmod +x /usr/local/preinit/99-fixmystreet
+
+EXPOSE 9000
+CMD ["/usr/local/bin/boot-debian-base"]