Fix bug 1262 - Updated requirements to use mysqlclient
[osm/LW-UI.git] / Dockerfile
index 4914e93..7b28d4b 100644 (file)
@@ -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"]