aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
blob: 8aab8adfcb30dc7d9f877cd573e253a6272af5cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM node:6

MAINTAINER Risto Stevcev

ENV PURESCRIPT_DOWNLOAD_SHA1 265196eb82e564e9a1942cfdfe5d0c596af6962e

RUN npm install -g bower pulp@10.0.0

RUN cd /opt \
    && wget https://github.com/purescript/purescript/releases/download/v0.10.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