Kenneth Geisshirt ab9396121b
Node 10 support (#2092)
* Revert "Revert "Fix Node.js 10 support (#1937)""
* Upgrading to Realm Core v5.12.0 and Realm Sync v3.13.1
* Only use node 6, 8, and 10 in pre-gyp
2018-11-08 09:39:42 +01:00

37 lines
1.0 KiB
Docker

FROM alanfranz/fwd-centos-6:latest
ARG PACKAGECLOUD_URL
ENV NPM_CONFIG_UNSAFE_PERM true
# Install EPEL & devtoolset
# On CentOS6, there is a bug with OverlayFS and Docker. It is needed to touch
# /var/lib/rpm/* in order to work around this issue.
# Link: https://github.com/docker/docker/issues/10180
RUN touch /var/lib/rpm/* \
&& yum -y install \
epel-release \
centos-release-scl-rh \
&& yum-config-manager --enable rhel-server-rhscl-6-rpms \
&& curl -s $PACKAGECLOUD_URL/script.rpm.sh | bash \
&& yum -y install \
python27 \
which \
chrpath \
openssl-devel \
devtoolset-6-gcc \
devtoolset-6-gcc-c++ \
devtoolset-6-binutils \
libconfig-devel \
jq \
&& yum remove -y g++ gcc \
&& yum clean all
ENV NVM_DIR /root/.nvm
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash
RUN . $NVM_DIR/nvm.sh && \
nvm install 6.14.4 && \
nvm install 8.12.0 && \
nvm install 10.13.0