-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-build
20 lines (20 loc) · 950 Bytes
/
Dockerfile-build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM carbolymer/haskell:stack-2.1.3
ENV NODEJS_VERSION 12.16.0
ENV PATH $PATH:/opt/node/bin
WORKDIR /workspace
RUN apt update && apt install -y wget python && rm -rf /var/lib/apt/lists/* /usr/share/man/* && \
cd /tmp && \
wget https://nodejs.org/dist/v${NODEJS_VERSION}/node-v${NODEJS_VERSION}-linux-x64.tar.xz && \
tar -xvf node-v${NODEJS_VERSION}-linux-x64.tar.xz && rm node-v${NODEJS_VERSION}-linux-x64.tar.xz && \
mv /tmp/node-v${NODEJS_VERSION}-linux-x64/ /opt/node && chown -R root:root /opt/node && \
chmod +x /opt/node/bin/* && \
apt-get purge -y --auto-remove wget && \
groupadd -g 1000 buildusr && \
useradd -u 1000 -g buildusr buildusr && \
mkdir -p /home/buildusr/.stack && \
echo "PATH=$PATH" >> /home/buildusr/.profile && \
chown -R buildusr:buildusr /home/buildusr && \
chmod -R 777 /opt/node
USER buildusr:buildusr
RUN npm install -g @angular/cli
# vim: syntax=dockerfile: