forked from exokitxr/exokit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (24 loc) · 1007 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
FROM debian:latest
RUN apt-get update && \
apt-get install -y \
build-essential wget python git \
libglfw3-dev libglew-dev libfreetype6-dev libfontconfig1-dev uuid-dev libxcursor-dev libxinerama-dev libxi-dev libasound2-dev libexpat1-dev \
libnss3-dev libxcomposite-dev libxtst-dev libxss-dev libdbus-1-dev libpango-1.0-0 libpangocairo-1.0-0 libatk1.0-0 libatk-bridge2.0-0
ADD . /app
WORKDIR /app
RUN \
wget "https://nodejs.org/dist/v12.2.0/node-v12.2.0-linux-x64.tar.gz" -O node.tar.gz && \
tar -zxf node.tar.gz && \
rm node.tar.gz && \
mv node-v12.2.0-linux-x64 node
RUN \
export PATH="$PATH:$(pwd)/node/bin" && \
npm install --unsafe-perm --no-optional . && \
export TEST_ENV=ci && \
npm run test
RUN \
mkdir -p /tmp/exokit-bin/bin /tmp/exokit-bin/lib/exokit && \
cp -R . /tmp/exokit-bin/lib/exokit && \
cp scripts/exokit-bin.sh /tmp/exokit-bin/bin/exokit && \
cd /tmp/exokit-bin && \
tar -czf /app/exokit-linux-bin.tar.gz --exclude=".*" --exclude="*.tar.gz" *