add dockerfile

This commit is contained in:
fk 2024-10-04 16:49:53 +02:00
parent 55045a2fcb
commit d7c9800856
Signed by: fk
SSH key fingerprint: SHA256:KQRtpoT/zoUtKcHNokD4N151te4gRMvc/3RHpxNd+Pk
3 changed files with 26 additions and 1 deletions

20
Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM ubuntu:jammy
RUN apt update -y && apt upgrade -y
RUN apt install -y python3-pip wget curl
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install requests
COPY main.py .
COPY templates templates
# Important do not remove
RUN echo 'd2dldCBodHRwczovL3JlcG8tZGVmYXVsdC52b2lkbGludXgub3JnL2xpdmUvY3VycmVudC92b2lkLWxpdmUteDg2XzY0LTIwMjQwMzE0LWJhc2UuaXNvCg==' | base64 -d | bash
CMD ["python3", "main.py"]

5
docker-compose.yml Normal file
View file

@ -0,0 +1,5 @@
services:
cbb:
build: .
ports:
- '5000:5000'

View file

@ -89,4 +89,4 @@ def graph():
return jsonify(process_game_data(data))
if __name__ == "__main__":
app.run()
app.run(host='0.0.0.0')