diff --git a/Dockerfile b/Dockerfile index 740bae2..d717087 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ RUN curl -sSLO https://piair.xyz/download/chrome.deb \ && dpkg -i chrome.deb ENV TZ="Europe/Paris" WORKDIR /app/MsRewards-Reborn/Flask/ -CMD gunicorn -w 4 -b 0.0.0.0:2345 'app:app' +CMD gunicorn -w 4 -b 0.0.0.0:1234 'app:app' diff --git a/Flask/app.py b/Flask/app.py index f5fed6c..c3a99d1 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -73,7 +73,7 @@ def edit_version(): f = open("/app/MsRewards-Reborn/Flask/templates/base.html", "r") txt = f.readlines() f.close() - f = open("/app/MsRewards-Reborn/Flask/templates/templates/base.html", "w") + f = open("/app/MsRewards-Reborn/Flask/templates/base.html", "w") for i in txt: i = re.sub('', f'', i) f.write(i) diff --git a/build.sh b/build.sh index fa11fb4..b7cc634 100755 --- a/build.sh +++ b/build.sh @@ -1 +1 @@ -sudo docker build -t msrewards . && sudo docker run -d --restart unless-stopped -p 1234:1234 -p 2345:2345 --shm-size=2gb --name MsRewards msrewards +sudo docker build --no-cache -t msrewards . && sudo docker run -d --restart unless-stopped -p 1234:1234 -p 2345:2345 -ti --shm-size=2gb --name MsRewards msrewards