aboutsummaryrefslogblamecommitdiffhomepage
path: root/Dockerfile
blob: a78a1a1f0ff27fd6c51bd22f72e50a18fe4da0c6 (plain) (tree)
1
2
3
4
5
6
7
8
9



                        
                                                                     
 
                             

             
                                                                                               















                                                                       
FROM node:4

MAINTAINER Risto Stevcev

ENV PURESCRIPT_DOWNLOAD_SHA1 1d2c097cdb599a5d6c7e790556438062744f5c6c

RUN npm install -g bower pulp

RUN cd /opt \
    && wget https://github.com/purescript/purescript/releases/download/v0.11.3/linux64.tar.gz \
    && echo "$PURESCRIPT_DOWNLOAD_SHA1 linux64.tar.gz" | sha1sum -c - \
    && tar -xvf linux64.tar.gz \
    && rm /opt/linux64.tar.gz

ENV PATH /opt/purescript:$PATH

RUN userdel node
RUN useradd -m -s /bin/bash pureuser

WORKDIR /home/pureuser

USER pureuser

RUN mkdir tmp && cd tmp && pulp init

CMD cd tmp && pulp psci