-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (30 loc) · 984 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
FROM node:12.18.2-stretch
LABEL maintainer="Booker Software"
# Environment variables
ENV APP_DIR /app
# Install some necessary tools
RUN apt-get update -qqy && \
apt-get -qqy install xvfb fluxbox x11vnc dbus \
fontconfig \
curl \
python-dev \
gnupg wget ca-certificates apt-transport-https && \
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
apt-get update -qqy && \
apt-get -qqy install google-chrome-unstable && \
ln -s /usr/bin/nodejs /usr/bin/node && \
npm install ember-cli -g && \
mkdir $APP_DIR && \
rm -rf /var/lib/apt/lists/* && \
git clone https://github.com/facebook/watchman.git && \
cd watchman && \
git checkout v4.9.0 && \
./autogen.sh && \
./configure && \
make && \
make install
COPY entrypoint.sh /entrypoint.sh
WORKDIR $APP_DIR
VOLUME [$APP_DIR]
CMD ["/entrypoint.sh"]