aboutsummaryrefslogtreecommitdiffstats
path: root/docker/flask_app/Dockerfile
diff options
context:
space:
mode:
authorEmma Foley <efoley@redhat.com>2021-04-21 19:59:52 +0100
committerEmma Foley <efoley@redhat.com>2021-12-17 09:48:20 +0000
commitc79ce380d9f8d3e582a1e7b13e1ce116312f5c64 (patch)
tree18b739b457fe7caee0919a2d433c87ca74bce242 /docker/flask_app/Dockerfile
parentd6865dee56b4648727943b9528ea86ddc4485310 (diff)
Create a flask app to show metrics from collectd
Change-Id: Ief2e99d551809705c0b246a7cae5bd5804f97137 Signed-off-by: Emma Foley <efoley@redhat.com>
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"]