From 2373c925e18963c6f2698ba4c45d74196f3aaaf3 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 28 Jun 2019 22:55:13 +0100 Subject: refactor: Move tazblog into monorepo structure It's happening! --- services/tazblog/Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 services/tazblog/Dockerfile (limited to 'services/tazblog/Dockerfile') 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 + +# 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 -- cgit 1.4.1