Commit e5f49a14 authored by Alexander Lercher's avatar Alexander Lercher

Welcome page for SMART

Used on ports :80 and :443.
parent 7ca4a448
FROM python:3
LABEL maintainer="Alexander Lercher"
ENV http_proxy http://proxy.uni-klu.ac.at:3128/
ENV https_proxy http://proxy.uni-klu.ac.at:3128/
RUN apt-get update
EXPOSE 5000
WORKDIR /app
COPY requirements.txt /app/
RUN pip install -r requirements.txt
COPY main.py /app/
COPY templates/ /app/templates/
RUN chmod a+x main.py
CMD ["python", "./main.py"]
\ No newline at end of file
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('index.html')
app.run(host='0.0.0.0', port=5000, debug=True)
\ No newline at end of file
flask
\ No newline at end of file
<html>
<head>
<style>
html {
display: flex;
margin: auto;
}
body {
max-width: 700px;
margin: auto;
display: table-cell;
vertical-align: middle;
}
h1 {
justify-content: center;
text-align: center;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<a href="https://articonf.eu/">
<img src="https://articonf.eu/wp-content/uploads/2019/03/articonf-logo-.png" alt="ARTICONF" width="60%"></img>
</a>
<br /><br /><br />
<h1 >Welcome to ARTICONF's SMART tool!</h1>
<!-- This page is used for SSL certification -->
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment