Merge "Move JS to external file"
[pharos-tools.git] / dashboard / web / Dockerfile
1 ##############################################################################
2 # Copyright (c) 2018 Trevor Bramwell and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 FROM node as static
10 RUN npm install -g bower
11 ADD src/static/ /static
12 WORKDIR /static/
13 RUN bower install --allow-root
14
15 FROM python:3.5
16 ENV PYTHONUNBUFFERED 1
17
18 ADD requirements.txt /requirements.txt
19 RUN pip install -r /requirements.txt
20
21 ADD web/init.sh /init.sh
22 ADD src/ /pharos_dashboard/
23 COPY --from=static /static/ pharos_dashboard/static/
24
25 WORKDIR /pharos_dashboard/
26 CMD ["/init.sh"]