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/*
|
2016-08-17 06:59:21 +03:00
|
|
|
ADD . /opt/unison
|
2015-09-17 18:43:00 +03:00
|
|
|
RUN stack setup
|
|
|
|
RUN stack build unison-node
|
2016-08-17 06:59:21 +03:00
|
|
|
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
|