14 lines
264 B
Docker
14 lines
264 B
Docker
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
|
|
RUN stack install && cp /root/.local/bin/tazblog /usr/bin/tazblog
|
|
|
|
# Done!
|
|
CMD /usr/bin/tazblog
|