From 55e9e34866f7a8460651967cbd6aac3ee8b692d1 Mon Sep 17 00:00:00 2001 From: Ian Burgess Date: Tue, 8 Apr 2025 21:26:33 -0600 Subject: [PATCH] a --- Dockerfile | 6 ++++++ app.py | 11 +++++++++++ requirements.txt | 2 ++ templates/index.html | 1 + 4 files changed, 20 insertions(+) create mode 100644 Dockerfile create mode 100644 app.py create mode 100644 requirements.txt create mode 100644 templates/index.html diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dc85ca7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3.12 +WORKDIR /app +RUN git clone https://source.ionburger.me/ionburger/turfrun.git +WORKDIR /app/turfrun +RUN pip install -r requirements.txt +CMD ["python", "app.py"] \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..fae4e42 --- /dev/null +++ b/app.py @@ -0,0 +1,11 @@ +import flask +import stravalib + +app = flask.Flask(__name__) +client = stravalib.client.Client() + +@app.route('/') +def index(): + return flask.render_template('index.html') + +app.run(host='0.0.0.0') \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8a6da2f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +flask +stravalib \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..32f95c0 --- /dev/null +++ b/templates/index.html @@ -0,0 +1 @@ +hi \ No newline at end of file