From d098dc859b509e4d369d8ddcce6084b01a174be2 Mon Sep 17 00:00:00 2001 From: ricsik52 Date: Sun, 29 Mar 2020 16:48:34 +0200 Subject: [PATCH] create --- Dockerfile | 9 +++++++++ app.py | 16 ++++++++++++++++ requirements.txt | 3 +++ 3 files changed, 28 insertions(+) create mode 100644 Dockerfile create mode 100644 app.py create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0ca2e4e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3 + +WORKDIR /app + +COPY . ./ + +RUN pip3 install --no-cache-dir -r requirements.txt + +CMD ["python3", "app.py"] diff --git a/app.py b/app.py new file mode 100644 index 0000000..4aaddda --- /dev/null +++ b/app.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +import sentry_sdk + +""" +Main Flask RESTful API +""" + +__author__ = "@tormakris" +__copyright__ = "Copyright 2020, GoldenPogácsa Team" +__module_name__ = "app" +__version__text__ = "1" + +sentry_sdk.init("https://0a106e104e114bc9a3fa47f9cb0db2f4@sentry.kmlabz.com/10") + +if __name__ == "__main__": + print("Producer") diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2be6044 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +sentry_sdk +flask +flask-redis \ No newline at end of file