unison/Dockerfile

15 lines
451 B
Docker
Raw Normal View History

2015-09-17 18:43:00 +03:00
FROM haskell:7.10.3
WORKDIR /opt/unison
RUN apt-get update -q && \
apt-get install -qy git nodejs nodejs-legacy && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD . /opt/unison
2015-09-17 18:43:00 +03:00
RUN stack setup
RUN stack build unison-node
RUN stack --stack-yaml editor.yaml setup
RUN stack --stack-yaml editor.yaml build
RUN ln -s $(stack --stack-yaml editor.yaml path --local-install-root)/bin editor
2015-09-17 18:43:00 +03:00
CMD stack exec node
EXPOSE 8080