fix UUID problem with projects and roles; removed bower
[osm/LW-UI.git] / docker / Dockerfile
1 FROM ubuntu:16.04
2
3 WORKDIR /usr/share/osm-lightui
4 COPY . /usr/share/osm-lightui
5
6 RUN apt-get update
7 RUN apt-get install -y npm git python-pip nginx supervisor libmysqlclient-dev mysql-client
8 RUN npm install -g bower
9 RUN ln -s /usr/bin/nodejs /usr/bin/node
10 #RUN bower install --allow-root
11 RUN npm install
12 RUN mv node_modules /static
13 RUN pip install -r requirements.txt
14 RUN pip install uwsgi
15
16 RUN echo "daemon off;" >> /etc/nginx/nginx.conf
17 COPY nginx-app.conf /etc/nginx/sites-available/default
18 COPY supervisor-app.conf /etc/supervisor/conf.d/
19
20 # delete the copy of the database inside the container (if exists)
21 RUN rm -f db.sqlite3
22
23 ENV DJANGO_ENV=prod
24 RUN python manage.py collectstatic --noinput
25
26 EXPOSE 80
27
28 CMD ["/usr/share/osm-lightui/entrypoint.sh"]