1 ##############################################################################
2 # Copyright (c) 2018 Trevor Bramwell and others.
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 ##############################################################################
10 RUN npm install -g bower
11 ADD src/static/ /static
13 RUN bower install --allow-root
16 ENV PYTHONUNBUFFERED 1
18 ADD requirements.txt /requirements.txt
19 RUN pip install -r /requirements.txt
21 ADD web/init.sh /init.sh
22 ADD src/ /pharos_dashboard/
23 COPY --from=static /static/ pharos_dashboard/static/
25 WORKDIR /pharos_dashboard/