a
This commit is contained in:
parent
acde162af1
commit
55e9e34866
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -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"]
|
||||
11
app.py
Normal file
11
app.py
Normal file
@ -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')
|
||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
flask
|
||||
stravalib
|
||||
1
templates/index.html
Normal file
1
templates/index.html
Normal file
@ -0,0 +1 @@
|
||||
hi
|
||||
Loading…
Reference in New Issue
Block a user