about summary refs log tree commit diff
path: root/Dockerfile
blob: 7d8b60582655ff8e40cf0a2b32f1ee20a05fdd07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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