diff options
author | Risto Stevcev <risto1@gmail.com> | 2016-06-27 03:32:43 +0200 |
---|---|---|
committer | Risto Stevcev <risto1@gmail.com> | 2016-06-27 03:32:43 +0200 |
commit | 73e702a7e363cbea0f731357954f8f5974a6c68a (patch) | |
tree | 0c4573ccd480e4527a05d80d529a2431285f44df | |
parent | 649ea3a7f1270353e272add89ce1090444abbbce (diff) | |
download | purescript-docker-73e702a7e363cbea0f731357954f8f5974a6c68a.tar.gz purescript-docker-73e702a7e363cbea0f731357954f8f5974a6c68a.tar.zst purescript-docker-73e702a7e363cbea0f731357954f8f5974a6c68a.zip |
Added Dockerfile
-rw-r--r-- | Dockerfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3a70337 --- /dev/null +++ b/Dockerfile | |||
@@ -0,0 +1,25 @@ | |||
1 | FROM node:4 | ||
2 | |||
3 | MAINTAINER Risto Stevcev | ||
4 | |||
5 | ENV PURESCRIPT_DOWNLOAD_SHA1 7ac8ded4bc3e2b5af378af4bed77598eb69bfde2 | ||
6 | |||
7 | RUN npm install -g bower pulp@8.2.1 | ||
8 | |||
9 | RUN cd /opt \ | ||
10 | && wget https://github.com/purescript/purescript/releases/download/v0.8.5/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 useradd -m -s /bin/bash pureuser | ||
18 | |||
19 | WORKDIR /home/pureuser | ||
20 | |||
21 | USER pureuser | ||
22 | |||
23 | RUN mkdir tmp && cd tmp && pulp init | ||
24 | |||
25 | CMD cd tmp && pulp psci | ||