forked from Kelder/ceneka-bot-battle
add dockerfile
This commit is contained in:
parent
55045a2fcb
commit
d7c9800856
3 changed files with 26 additions and 1 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal 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
5
docker-compose.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
services:
|
||||
cbb:
|
||||
build: .
|
||||
ports:
|
||||
- '5000:5000'
|
2
main.py
2
main.py
|
@ -89,4 +89,4 @@ def graph():
|
|||
return jsonify(process_game_data(data))
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
app.run(host='0.0.0.0')
|
||||
|
|
Loading…
Reference in a new issue