forked from cliqz-oss/browser-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (46 loc) · 1.28 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM node:5.11.1
RUN npm install -g \
bower \
broccoli-cli \
ember-cli \
phantomjs \
yuidocjs
RUN apt-get update && \
apt-get install -y \
build-essential \
python-dev \
python-pip \
zip
RUN pip install \
fabric \
jinja2 \
awscli \
requests \
pycrypto \
argparse
RUN cd /tmp && \
wget https://www.openssl.org/source/old/0.9.x/openssl-0.9.8zg.tar.gz && \
tar zxf openssl-0.9.8zg.tar.gz && \
cd openssl-0.9.8zg && \
./config && \
make && \
make install
ENV PATH "/usr/local/ssl/bin:$PATH"
ARG UID
ARG GID
RUN groupadd jenkins -g $GID \
&& useradd -ms /bin/bash jenkins -u $UID -g $GID
# TODO
# Cache bower packages
# RUN su - jenkins -c 'echo "{\"storage\": {\"packages\": \"~/.bower/packages\", \"registry\": \"~/.bower/registry\", \"links\": \"~/.bower/links\"}}" > /home/jenkins/.bowerrc'
# TODO: Also make use of a caching directory
USER jenkins
# Cache npm install and bower in docker
COPY package.json /home/jenkins/
COPY bower.json /home/jenkins/
RUN cd /home/jenkins/ && npm install && bower install
# Freshtab
RUN mkdir /home/jenkins/freshtab
COPY subprojects/fresh-tab-frontend/package.json /home/jenkins/freshtab
COPY subprojects/fresh-tab-frontend/bower.json /home/jenkins/freshtab
RUN cd /home/jenkins/freshtab && npm install && bower install