migrate to docker

This commit is contained in:
herz 2022-03-14 16:06:38 +01:00
parent cc6f15de7d
commit 83b7eb6ac3
17 changed files with 22 additions and 2 deletions

View File

@ -1,11 +1,12 @@
from turtle import st
from flask import Flask, render_template, request, redirect, url_for
from waitress import serve
import requests
import re
import json
import xml
import xmltodict
app = Flask(__name__)
@ -95,7 +96,7 @@ def get_faceit_data(steamid_64):
if __name__ == "__main__":
app.run(host="127.0.0.1", port=8080, debug=True)
#serve(app, host='0.0.0.0', port=8080)

View File

Before

Width:  |  Height:  |  Size: 662 B

After

Width:  |  Height:  |  Size: 662 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 758 B

After

Width:  |  Height:  |  Size: 758 B

View File

Before

Width:  |  Height:  |  Size: 1009 B

After

Width:  |  Height:  |  Size: 1009 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 678 B

After

Width:  |  Height:  |  Size: 678 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 410 KiB

After

Width:  |  Height:  |  Size: 410 KiB

View File

@ -0,0 +1,19 @@
FROM ubuntu:20.04
MAINTANER Your Name "glaser@denied-gaming.de"
RUN apt-get update -y && \
apt-get install -y python3-pip python3
# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt
COPY . /app
ENTRYPOINT [ "python" ]
CMD [ "main.py" ]