Skip to content

Commit c8a8de3

Browse files
committed
Set up website to grab and serve preseed
1 parent a83768e commit c8a8de3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ COPY . .
1111

1212
WORKDIR /app/src
1313

14+
# Get the latest preseed and serve it
15+
RUN curl 'https://raw.githubusercontent.com/ComputerScienceHouse/Devcade-onboard/main/idiot/preseed.txt' > /app/src/static/files/preseed.txt
16+
1417
CMD [ "gunicorn", "--bind", "0.0.0.0:8080", "app:app"]
1518
# CMD ["python3", "app.py"]

src/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ def credits():
9999
def gamejam():
100100
return flask.render_template('gamejam.html')
101101

102+
@app.route('/preseed')
103+
def preseed():
104+
return flask.send_file("static/files/preseed.txt")
105+
102106
@app.errorhandler(Exception)
103107
def page404(e):
104108
eCode = 500

0 commit comments

Comments
 (0)