]> git.immae.eu Git - github/fretlink/purescript-docker.git/blob - Dockerfile
Merge pull request #5 from dgendill/issue2
[github/fretlink/purescript-docker.git] / Dockerfile
1 FROM node:4
2
3 MAINTAINER Risto Stevcev
4
5 ENV PURESCRIPT_DOWNLOAD_SHA1 3eb742521db7d87359346143a47230b73110ccbe
6
7 RUN npm install -g bower pulp@11.0.0
8
9 RUN cd /opt \
10 && wget https://github.com/purescript/purescript/releases/download/v0.11.6/linux64.tar.gz \
11 && echo "$PURESCRIPT_DOWNLOAD_SHA1 linux64.tar.gz" | sha1sum -c - \
12 && tar -xvf linux64.tar.gz \
13 && rm /opt/linux64.tar.gz
14
15 ENV PATH /opt/purescript:$PATH
16
17 RUN userdel node
18 RUN useradd -m -s /bin/bash pureuser
19
20 WORKDIR /home/pureuser
21
22 USER pureuser
23
24 RUN mkdir tmp && cd tmp && pulp init
25
26 CMD cd tmp && pulp psci