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