X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=Dockerfile;h=2cb64d04722c051e1774b26f997daa8a2996c26d;hb=350dbf706fd7d8e162392c01fe8608a6e305c896;hp=4914e937119af1f573e89ba79c5f1fa8130ca82a;hpb=45de6cb5a240d0b2f7378128a45ca4bafa54ffe0;p=osm%2FLW-UI.git diff --git a/Dockerfile b/Dockerfile index 4914e93..2cb64d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,11 @@ -FROM ubuntu:16.04 - -WORKDIR /usr/src/app -COPY . /usr/src/app - -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 +# This Dockerfile is intented for devops and deb package generation +# +# Use Dockerfile.local for running osm/NBI in a docker container from source +# Use Dockerfile.fromdeb for running osm/NBI in a docker container from last stable package -# 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 +FROM ubuntu:16.04 +RUN apt-get update && apt-get -y install git make libcurl4-gnutls-dev \ + libgnutls-dev debhelper apt-utils dh-make -EXPOSE 80 -CMD ["python", "manage.py", "runserver", "0.0.0.0:80"]