5 RUN apt-get update && apt-get install -y npm git python-pip nginx supervisor
6 RUN npm install -g bower
7 RUN git clone https://osm.etsi.org/gerrit/osm/LW-UI /usr/src/app
9 RUN ln -s /usr/bin/nodejs /usr/bin/node
10 RUN bower install --allow-root
12 RUN pip install -r requirements.txt
15 RUN echo "daemon off;" >> /etc/nginx/nginx.conf
16 RUN cp /usr/src/app/nginx-app.conf /etc/nginx/sites-available/default
17 RUN cp /usr/src/app/supervisor-app.conf /etc/supervisor/conf.d/
19 # delete the copy of the database inside the container (if exists)
23 RUN python manage.py makemigrations authosm
24 RUN python manage.py migrate
25 RUN python manage.py collectstatic --noinput
30 CMD ["supervisord", "-n"]