X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=Dockerfile;h=7b28d4bb4bce8edcb6c1cf884eeda2b41cb0a8ec;hb=refs%2Ftags%2Fv9.1.4;hp=e9d3030191eafe430e7a4f2279591e2fa72ee10f;hpb=c89a4a0390fd7250179e7a3730aa53a6ce2ede68;p=osm%2FLW-UI.git diff --git a/Dockerfile b/Dockerfile index e9d3030..7b28d4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,29 +1,23 @@ -FROM ubuntu:16.04 +# Copyright 2020 ETSI +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# This Dockerfile is intented for devops and deb package generation +# +# Use docker/Dockerfile for running osm/LW-UI in a docker container from source + +FROM ubuntu:18.04 + +RUN apt-get update && apt-get -y install git make debhelper apt-utils dh-make -WORKDIR /usr/src/app -COPY . /usr/src/app - -RUN apt-get update -RUN apt-get install -y npm git python-pip nginx supervisor -RUN npm install -g bower -RUN ln -s /usr/bin/nodejs /usr/bin/node -RUN bower install --allow-root -RUN pip install -r requirements.txt -RUN pip install uwsgi - -RUN echo "daemon off;" >> /etc/nginx/nginx.conf -COPY nginx-app.conf /etc/nginx/sites-available/default -COPY supervisor-app.conf /etc/supervisor/conf.d/ - -# delete the copy of the database inside the container (if exists) -RUN rm -f db.sqlite3 - -ENV DJANGO_ENV=prod -RUN python manage.py makemigrations authosm -RUN python manage.py migrate -RUN python manage.py collectstatic --noinput - - -EXPOSE 80 - -CMD ["supervisord", "-n"] \ No newline at end of file