forked from realm/realm-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (32 loc) · 896 Bytes
/
Dockerfile
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
30
31
32
33
34
35
FROM centos/devtoolset-7-toolchain-centos7
USER root
ENV NPM_CONFIG_UNSAFE_PERM true
ENV NVM_DIR /tmp/.nvm
RUN yum -y install \
chrpath \
jq \
libconfig-devel \
make \
perl \
which \
openssh-clients \
xorg-x11-server-Xvfb \
libXScrnSaver \
gtk3 \
alsa-lib \
&& yum clean all \
\
# TODO: install openssl in /usr/local
&& curl -SL https://www.openssl.org/source/openssl-1.0.2k.tar.gz | tar -zxC / \
&& cd /openssl-1.0.2k \
&& ./Configure -DPIC -fPIC -fvisibility=hidden -fvisibility-inlines-hidden no-zlib-dynamic no-dso linux-x86_64 --prefix=/usr \
&& make && make install_sw \
&& rm -rf /openssl-1.0.2k \
&& cd /tmp \
\
&& mkdir -p $NVM_DIR \
&& curl -s https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install 8.15.0 \
&& nvm install 10.15.1 \
&& chmod a+rwX -R $NVM_DIR \