X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=Dockerfile;h=7b28d4bb4bce8edcb6c1cf884eeda2b41cb0a8ec;hb=2f127c91b9a12bd7131218f11a89aee83ec1c52e;hp=4914e937119af1f573e89ba79c5f1fa8130ca82a;hpb=45de6cb5a240d0b2f7378128a45ca4bafa54ffe0;p=osm%2FLW-UI.git diff --git a/Dockerfile b/Dockerfile index 4914e93..7b28d4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +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 -WORKDIR /usr/src/app -COPY . /usr/src/app +FROM ubuntu:18.04 -RUN apt-get update -RUN apt-get install -y npm git python-pip -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 apt-get update && apt-get -y install git make debhelper apt-utils dh-make - -# delete the copy of the database inside the container (if exists) -RUN rm -f db.sqlite3 - -RUN python manage.py makemigrations authosm -RUN python manage.py migrate - - -EXPOSE 80 -CMD ["python", "manage.py", "runserver", "0.0.0.0:80"]