add: docker, fix: url to github in index.html & reqs.txt

This commit is contained in:
te5154c
2024-02-05 17:49:46 +03:00
parent f5752606af
commit f5cac5e410
7 changed files with 27 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
media
README.md
+1
View File
@@ -0,0 +1 @@
__pycache__
+12
View File
@@ -0,0 +1,12 @@
FROM python:3.7.10
WORKDIR /build/
COPY requirements.txt /build/
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
COPY . /build/
# CMD ["python3", "-m", "flask", "run", "--host=0.0.0.0"]
+1 -1
View File
@@ -26,4 +26,4 @@ def viewer_page(cid):
if __name__ == "__main__": if __name__ == "__main__":
app.run(debug=True) app.run(host="0.0.0.0", port=80)
+9
View File
@@ -0,0 +1,9 @@
version: "3"
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "80:5000"
network_mode: "host"
+1
View File
@@ -1 +1,2 @@
Flask==2.2.5 Flask==2.2.5
requests==2.31.0
+1 -1
View File
@@ -24,7 +24,7 @@
<div class="h-100 p-5 bg-light border rounded-3"> <div class="h-100 p-5 bg-light border rounded-3">
<h2>Open source project</h2> <h2>Open source project</h2>
<p>This project is fully opened, so you can contribute in it if you want</p> <p>This project is fully opened, so you can contribute in it if you want</p>
<a href="https://github.com/uw935/vatsim-fox"> <a href="https://github.com/uw935/vatsimfox">
<button class="btn btn-outline-secondary" type="button">GitHub</button> <button class="btn btn-outline-secondary" type="button">GitHub</button>
</a> </a>
</div> </div>