aboutsummaryrefslogtreecommitdiffstats
path: root/docker/flask_app/Dockerfile
diff options
context:
space:
mode:
authorEmma Foley <efoley@redhat.com>2021-12-17 13:07:53 +0000
committerGerrit Code Review <gerrit@opnfv.org>2021-12-17 13:07:53 +0000
commit18206d429dd42701fc21f82c5dbc323e8b7b2eb5 (patch)
tree76954f5145b1937e32d00e11faf8944e9b7ca1da /docker/flask_app/Dockerfile
parent1c7fea25a4084bafb52158c915e803b473ffbca0 (diff)
parent5cc8e3c94bdf62c5fd9838e4987d4e670d36f9ed (diff)
Merge changes from topic "collectd_6_testing"
* changes: Add a playbook that tests collectd 6 vs collectd5 [docker][ansible] Add a playbook for building the containers Create a flask app to show metrics from collectd
Diffstat (limited to 'docker/flask_app/Dockerfile')
-rw-r--r--docker/flask_app/Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/docker/flask_app/Dockerfile b/docker/flask_app/Dockerfile
new file mode 100644
index 00000000..67e6d589
--- /dev/null
+++ b/docker/flask_app/Dockerfile
@@ -0,0 +1,25 @@
+# Copyright 2021 Anuket and others. All rights reserved.
+#
+# 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.
+#
+
+FROM python:3-alpine
+
+EXPOSE 5000
+
+WORKDIR /app
+COPY ./ /app
+
+RUN python -m pip install -r requirements.txt
+
+ENTRYPOINT ["python", "flask_app.py"]