about summary refs log tree commit diff
path: root/services/tazblog/Dockerfile
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-06-28T21·55+0100
committerVincent Ambo <tazjin@google.com>2019-06-28T21·55+0100
commit2373c925e18963c6f2698ba4c45d74196f3aaaf3 (patch)
tree38a0c804881c71b24391129d9ca4092de1a7b583 /services/tazblog/Dockerfile
parentaeeb11f1b76729115c4db98f419cbcda1a0f7660 (diff)
refactor: Move tazblog into monorepo structure
It's happening!
Diffstat (limited to 'services/tazblog/Dockerfile')
-rw-r--r--services/tazblog/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/services/tazblog/Dockerfile b/services/tazblog/Dockerfile
new file mode 100644
index 000000000000..7d8b60582655
--- /dev/null
+++ b/services/tazblog/Dockerfile
@@ -0,0 +1,19 @@
+FROM fpco/stack-build
+MAINTAINER Vincent Ambo <dev@tazj.in>
+
+# Cache dependencies
+ADD stack.yaml tazblog.cabal /opt/tazblog/
+WORKDIR /opt/tazblog
+RUN stack build --only-dependencies
+
+# Base setup
+VOLUME /var/tazblog
+EXPOSE 8000 8070
+ENV PATH /root/.local/bin:$PATH
+
+# Build blog
+ADD . /opt/tazblog
+RUN stack install && cp /root/.local/bin/tazblog* /usr/bin/
+
+# Done!
+CMD tazblog