migrate to docker
|
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 662 B After Width: | Height: | Size: 662 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 758 B After Width: | Height: | Size: 758 B |
|
Before Width: | Height: | Size: 1009 B After Width: | Height: | Size: 1009 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 678 B After Width: | Height: | Size: 678 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 410 KiB After Width: | Height: | Size: 410 KiB |
|
|
@ -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" ]
|
||||