devel: use mounts for development
[laas.git] / 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 python:3.5
10 ENV PYTHONUNBUFFERED 1
11
12 RUN apt-get update && apt-get install -y npm
13 RUN npm install -g bower
14
15 ADD requirements.txt /requirements.txt
16 RUN pip install -r /requirements.txt
17
18 ADD web/init.sh /init.sh
19 ADD src/ /laas_dashboard/
20
21 ADD src/static/ laas_dashboard/static/
22 RUN cd laas_dashboard/static/ && bower install --allow-root
23
24 WORKDIR /laas_dashboard/
25 CMD ["/init.sh"]