Dockerfile-3.5 571 Bytes
Newer Older
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
1
2
from node:7.10.0

J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
3
4
5
# Install gettext to get envsubst
RUN apt-get update && apt-get install -y gettext

6
ENV NODE_PATH=/tmp/node_modules APP_NAME=dashboard-gsicrawler
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
7
8
9
10
11

# Install dependencies first to use cache
RUN npm install -g http-server bower


J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
12
13
WORKDIR /usr/src/app/

14
15
16
17
RUN mkdir -p /etc/ssl/certs
COPY lab.cluster.gsi.dit.upm.es.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates

J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
18
19
20
21
ADD bower.json /usr/src/app/bower.json

RUN bower link --allow-root
RUN bower install --allow-root  && mv bower_components ..
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
22
23
24
25

ADD . /usr/src/app

CMD ["/usr/src/app/init.sh"]