2015-11-19 16:57:03 +01:00
|
|
|
FROM fpco/stack-build
|
|
|
|
MAINTAINER Vincent Ambo <dev@tazj.in>
|
|
|
|
|
|
|
|
# Base setup
|
|
|
|
VOLUME /var/tazblog
|
|
|
|
EXPOSE 8000
|
|
|
|
|
|
|
|
# Build blog
|
|
|
|
ADD . /opt/tazblog/src
|
|
|
|
WORKDIR /opt/tazblog/src
|
2015-11-19 17:53:05 +01:00
|
|
|
RUN stack install && cp /root/.local/bin/tazblog /usr/bin/tazblog
|
2015-11-19 16:57:03 +01:00
|
|
|
|
|
|
|
# Done!
|
|
|
|
CMD /usr/bin/tazblog
|