3 RUN apt-get update && apt-get install -y npm git python-pip nginx supervisor curl software-properties-common libmysqlclient-dev mysql-client
4 RUN npm install -g bower
5 RUN ln -s /usr/bin/nodejs /usr/bin/node
6 RUN echo "daemon off;" >> /etc/nginx/nginx.conf
8 ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
9 ARG RELEASE=ReleaseFOUR-daily
10 ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
11 ARG REPOSITORY=testing
14 RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add -
15 RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} LW-UI" && apt-get update
17 RUN apt-get install -y osm-lightui${LWUI_VERSION} && \
18 rm -rf /var/lib/apt/lists/*
20 WORKDIR /usr/share/osm-lightui
21 RUN bower install --allow-root
22 RUN pip install -r requirements.txt
24 RUN cp /usr/share/osm-lightui/nginx-app.conf /etc/nginx/sites-available/default
25 RUN cp /usr/share/osm-lightui/supervisor-app.conf /etc/supervisor/conf.d/
27 # delete the copy of the database inside the container (if exists)
31 RUN python manage.py collectstatic --noinput
32 RUN chmod +x /usr/share/osm-lightui/entrypoint.sh
36 HEALTHCHECK --start-period=130s --interval=10s --timeout=5s --retries=12 \
37 CMD curl --silent --fail localhost:80 || exit 1
39 CMD ["/usr/share/osm-lightui/entrypoint.sh"]