-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (29 loc) · 1.29 KB
/
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
36
37
38
39
#FROM ubuntu:14.10
FROM ubuntu:trusty
MAINTAINER Stephen Chumley "[email protected]"
# Update packages
##### RUN apt-get update -y --fix-missing && apt-get upgrade -y
# Install some packages we need
##### RUN apt-get install -y curl git
# Install Node.JS, chrome and xvfb
# node v0.12.0 is the most recent that circleci supports, so we are using this for now
RUN apt-get update; \
apt-get install -y git curl; \
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -; \
curl https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - ; \
sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'; \
apt-get update && apt-get install -y google-chrome-stable nodejs Xvfb; \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Copy files and run
ADD . /opt/ci-grunt-karma-mocha
RUN cd /opt/ci-grunt-karma-mocha && npm install
# Build display versions
# RUN cd /opt/ci-grunt-karma-mocha && node build.js
### UNCOMMENT THIS BLOCK WHEN RUNNING DOCKER LOCALLY (e.g. boot2docker, docker tools, etc.)
### ADD xvfb.sh /etc/init.d/xvfb
### ENV DISPLAY :99.0
###E NV CHROME_BIN /usr/bin/google-chrome
##### EXPOSE 5000
##### CMD forever /opt/display/server.js
##### CMD /bin/bash
###ENTRYPOINT ["/entrypoint.sh"]