aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorRisto Stevcev <risto1@gmail.com>2017-01-21 02:18:06 +0100
committerGitHub <noreply@github.com>2017-01-21 02:18:06 +0100
commit57b1ad33d048df3b72aa62e68f011cafaaa66f84 (patch)
treeb40456b3acf174c844d21cc139b21ddadf1a9e6b /Dockerfile
parentf0f74b6cd1dc8f1345cc7679010a227de26268b2 (diff)
parent105cd287d23b233b048da3b1bb12fc915216fc43 (diff)
downloadpurescript-docker-0.10.5.tar.gz
purescript-docker-0.10.5.tar.zst
purescript-docker-0.10.5.zip
Merge pull request #1 from dgendill/master0.10.5
Add Dockerfile and Upgrade to Purescript 0.10.5
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..88b1b8c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,26 @@
1FROM node:4
2
3MAINTAINER Risto Stevcev
4
5ENV PURESCRIPT_DOWNLOAD_SHA1 8355acb4419fcd136d7f8d19d398ae8ebf457bcd
6
7RUN npm install -g bower pulp@10.0.0
8
9RUN cd /opt \
10 && wget https://github.com/purescript/purescript/releases/download/v0.10.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
15ENV PATH /opt/purescript:$PATH
16
17RUN userdel node
18RUN useradd -m -s /bin/bash pureuser
19
20WORKDIR /home/pureuser
21
22USER pureuser
23
24RUN mkdir tmp && cd tmp && pulp init
25
26CMD cd tmp && pulp psci