From b0117c45ab6535d4eefef764a3162ac7652fb5cb Mon Sep 17 00:00:00 2001 From: justin14 Date: Thu, 30 May 2019 21:39:36 +0000 Subject: [PATCH] Adding Dockerfile to webdemo - Allows for demo to be installed as part of docker compose/ kubernetes setup Change-Id: I848068a693c9dbbf223774d5c5a5122c726aaabb Signed-off-by: justin14 --- web_demo/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 web_demo/Dockerfile diff --git a/web_demo/Dockerfile b/web_demo/Dockerfile new file mode 100644 index 0000000..81ca44f --- /dev/null +++ b/web_demo/Dockerfile @@ -0,0 +1,25 @@ +# ===============LICENSE_START======================================================= +# Acumos Apache-2.0 +# =================================================================================== +# Copyright (C) 2019 Nordix Foundation +# =================================================================================== +# This Acumos software file is distributed by Nordix Foundation +# 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 +# +# This file 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. +# ===============LICENSE_END========================================================= + +FROM python:3.6-slim + +RUN mkdir /app +WORKDIR /app +ADD . /app +EXPOSE 8000 +CMD [ "python", "simple-cors-http-server-python3.py"] -- 2.16.5