tvl-depot/services/tazblog/Dockerfile
2019-06-28 22:55:39 +01:00

19 lines
379 B
Docker

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