Browse Source

added docker compose

master
Juni Kim 12 months ago
parent
commit
0316f57205
  1. 6
      docker-compose.yml
  2. 25
      templates/page.html

6
docker-compose.yml

@ -0,0 +1,6 @@
services:
app:
build:
context: .
ports:
- "3004:8000"

25
templates/page.html

@ -12,6 +12,7 @@
</head> </head>
<body> <body>
<main class="container"> <main class="container">
<h1> USAMTS 5/2/35 </h1>
<strong><h3>Problem</h3></strong> <strong><h3>Problem</h3></strong>
<p> <p>
Let \(m\) and \(n\) be positive integers. Let \(S\) be the set of all points Let \(m\) and \(n\) be positive integers. Let \(S\) be the set of all points
@ -30,18 +31,6 @@
construction to even be viable, this quantity clearly needs to be even. construction to even be viable, this quantity clearly needs to be even.
</p> </p>
<strong><h3>Constructor</h3></strong> <strong><h3>Constructor</h3></strong>
{% if invalid %}
<p> Invalid Input! </p>
{% endif %}
{% if nosol %}
<p> No Valid Solution is Possible! </p>
{% endif %}
{% if image %}
<img src="{{ image }}" alt="Solution Image" />
{% endif %}
{% if works == False %}
<p> Claimed Construction Fails!!!! </p>
{% endif %}
<form method="POST" action="{{url_for ('index')}}"> <form method="POST" action="{{url_for ('index')}}">
<table role="grid"> <table role="grid">
<tbody> <tbody>
@ -65,6 +54,18 @@
</table> </table>
<input type="submit" value="Construct"> <input type="submit" value="Construct">
</form> </form>
{% if invalid %}
<p> Invalid Input! </p>
{% endif %}
{% if nosol %}
<p> No Valid Solution is Possible! </p>
{% endif %}
{% if image %}
<img src="{{ image }}" alt="Solution Image" />
{% endif %}
{% if works == False %}
<p> Claimed Construction Fails!!!! </p>
{% endif %}
</main> </main>
</body> </body>
</html> </html>
Loading…
Cancel
Save