]> git.immae.eu Git - github/fretlink/purescript-docker.git/blame - Dockerfile
Remove node user introduced by base container
[github/fretlink/purescript-docker.git] / Dockerfile
CommitLineData
c385b755 1FROM node:6
73e702a7
RS
2
3MAINTAINER Risto Stevcev
4
77e7bc65 5ENV PURESCRIPT_DOWNLOAD_SHA1 9c0dbbf7f7ccc56ace7192bcab51452618c8e2ed
73e702a7 6
c385b755 7RUN npm install -g bower pulp@9.0.1
73e702a7
RS
8
9RUN cd /opt \
77e7bc65 10 && wget https://github.com/purescript/purescript/releases/download/v0.9.3/linux64.tar.gz \
73e702a7
RS
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
9abeb876 17RUN userdel node
73e702a7
RS
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