-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.vzon-node
29 lines (20 loc) · 943 Bytes
/
Dockerfile.vzon-node
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
27
28
29
FROM ubuntu:latest
MAINTAINER Jhonathas Matos <jhonathas@gmail.com>
WORKDIR /code
RUN apt-get update -yqqq && apt-get install -y git curl gpg wget unzip
RUN git clone --depth 1 https://github.com/asdf-vm/asdf.git /root/.asdf
RUN echo '. /root/.asdf/asdf.sh' >> /root/.bashrc
RUN echo '. /root/.asdf/asdf.sh' >> /root/.profile
ENV PATH="${PATH}:/root/.asdf/shims:/root/.asdf/bin"
# Pull latest asdf
RUN asdf update --head
# Install dependencies
RUN asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
RUN bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
RUN asdf install nodejs 8.9.4
RUN asdf global nodejs 8.9.4
RUN npm install -g npm@6.4.1
# Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
RUN apt-get update -yqqq && apt-get install -y google-chrome-stable