-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ENV LC_ALL=C DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && \ | ||
apt-get install apt-utils -y && \ | ||
apt-get dist-upgrade -y && \ | ||
apt-get install -y \ | ||
ccache \ | ||
g++ \ | ||
gcc \ | ||
git \ | ||
curl \ | ||
python-pip \ | ||
python3-pip \ | ||
libfontconfig1 | ||
|
||
# Installing ccache doesn't do this for us on Ubuntu but these are | ||
# the defaults that `ninja` uses so it bypasses ccache without these | ||
RUN ln -sf /usr/bin/ccache /usr/lib/ccache/cc && \ | ||
ln -sf /usr/bin/ccache /usr/lib/ccache/c++ | ||
|
||
RUN addgroup --gid 1000 iojs && \ | ||
adduser --gid 1000 --uid 1000 --disabled-password --home /home/iojs --shell /bin/bash --gecos iojs iojs | ||
|
||
RUN su iojs -c 'mkdir /home/iojs/tmp' | ||
|
||
ENV OPENSSL110DIR /opt/openssl-1.1.0l | ||
|
||
RUN mkdir -p /tmp/openssl_1.1.0l && \ | ||
cd /tmp/openssl_1.1.0l && \ | ||
curl -sL https://www.openssl.org/source/openssl-1.1.0l.tar.gz | tar zxv --strip=1 && \ | ||
./config --prefix=$OPENSSL110DIR && \ | ||
make -j 6 && \ | ||
make install && \ | ||
rm -rf /tmp/openssl_1.1.0l | ||
|
||
VOLUME /home/iojs/.ccache /home/iojs/workspace | ||
|
||
ENV PATH=/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ | ||
USER=iojs \ | ||
JOBS=2 \ | ||
SHELL=/bin/bash \ | ||
HOME=/home/iojs \ | ||
NODE_COMMON_PIPE=/home/iojs/test.pipe \ | ||
NODE_TEST_DIR=/home/iojs/tmp \ | ||
OSTYPE=linux-gnu \ | ||
OSVARIANT=docker \ | ||
DESTCPU=x64 \ | ||
ARCH=x64 | ||
|
||
WORKDIR /home/iojs | ||
|
||
USER iojs:iojs |