c05193a3b688b620b41f5d4a9aeef037b7c17b32
[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.9
10 ENV PYTHONUNBUFFERED 1
11
12 RUN apt-get update && apt-get install -y npm
13
14 ADD requirements.txt /requirements.txt
15 RUN pip install -r /requirements.txt
16
17 ADD web/init.sh /init.sh
18 ADD src/ /laas_dashboard/
19
20 ADD src/static/ laas_dashboard/static/
21 RUN cd laas_dashboard/static/ && npm install
22
23 WORKDIR /laas_dashboard/
24 CMD ["/init.sh"]