diff --git a/Dockerfile b/Dockerfile index 205bd68..8ef2178 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,6 @@ FROM python:3.10 ENV DEBIAN_FRONTEND noninteractive ENV GECKODRIVER_VER v0.31.0 ENV FIREFOX_VER 87.0 -WORKDIR /app -copy ./ /app/ WORKDIR /app/ RUN curl -sSLO https://piair.xyz/download/chrome.deb \ && git clone https://gitea.augustin64.fr/piair/MsRewards-Reborn \ @@ -12,6 +10,6 @@ RUN curl -sSLO https://piair.xyz/download/chrome.deb \ && apt install xvfb wfrench tigervnc-standalone-server libasound2 libatk-bridge2.0-0 libnss3 libnspr4 xvfb libgbm1 libatk1.0-0 libu2f-udev libatspi2.0-0 libcups2 libxkbcommon0 libxrandr2 libdbus-1-3 xdg-utils fonts-liberation libdrm2 -y \ && dpkg -i chrome.deb \ && python3 -m pip install -r requirements.txt - +WORKDIR /app/MsRewards-Reborn CMD python3 Flask/app.py diff --git a/Flask/app.py b/Flask/app.py index 2157690..1cc14c4 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -374,4 +374,4 @@ def maxi(dict): if __name__ == '__main__': - app.run(host='0.0.0.0', port=3456, debug=True) \ No newline at end of file + app.run(host='0.0.0.0', port=1234, debug=True) \ No newline at end of file diff --git a/build.sh b/build.sh index 41b8b44..c4e9e3f 100755 --- a/build.sh +++ b/build.sh @@ -3,6 +3,5 @@ echo "Enter the name of the instance" read name - sudo docker build -t msrewards . sudo docker run -p 1234:1234 --shm-size=2gb --name $name msrewards