7 RUN apt-get -y install npm
8 RUN npm install -g bower
9 RUN ln -s /usr/bin/nodejs /usr/bin/node
10 RUN bower install --allow-root
11 RUN pip install -r requirements.txt
14 # delete the copy of the database inside the container (if exists)
17 RUN python manage.py makemigrations sf_user projecthandler instancehandler vimhandler
18 RUN python manage.py migrate
20 RUN python manage.py shell -c "from projecthandler.osm_model import OsmProject; from sf_user.models import CustomUser; CustomUser.objects.create_superuser('admin', 'admin'); admin = CustomUser.objects.get(username='admin'); OsmProject.create_project('admin',admin,True, 'project admin','')"
24 CMD ["python", "manage.py", "runserver", "0.0.0.0:80"]