diff --git a/Dockerfile b/Dockerfile index 763e0ed..e8e283c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,4 +13,4 @@ COPY main.py . # Set the entrypoint to run the app ENTRYPOINT [ "streamlit", "run" ] -CMD [ "main.py", "--server.port=8080", "--server.headless", "true", "--server.fileWatcherType", "none", "--browser.gatherUsageStats", "false"] \ No newline at end of file +CMD [ "main.py", "--server.port=8051", "--server.headless", "true", "--server.fileWatcherType", "none", "--browser.gatherUsageStats", "false"] \ No newline at end of file diff --git a/docker-run.sh b/docker-run.sh index 16f1b22..2070607 100644 --- a/docker-run.sh +++ b/docker-run.sh @@ -5,4 +5,4 @@ docker stop fabriquedoc-frontend docker rm fabriquedoc-frontend # Ce programme sert à lancer le job_dispatcher dans un docker localement pour tester -docker run -p 8051:8051 -e FABRIQUEDOC_ENDPOINT=0.0.0.0:8080 --name fabriquedoc-frontend --network host local/fabriquedoc-frontend \ No newline at end of file +docker run -p 8051:8051 --name fabriquedoc-frontend --network host local/fabriquedoc-frontend \ No newline at end of file diff --git a/main.py b/main.py index 3eecb21..36451cc 100644 --- a/main.py +++ b/main.py @@ -24,7 +24,7 @@ import os st.title("Fabrique à documents") -fabriquedoc_endpoint = os.environ.get("FABRIQUEDOC_ENDPOINT", "http://0.0.0.0:8051") +fabriquedoc_endpoint = os.environ.get("FABRIQUEDOC_ENDPOINT", "http://0.0.0.0:8000") tab1, tab2, tab3 = st.tabs(["Markdown", "Aperçu", "Paramètres"]) diff --git a/run.sh b/run.sh index 1ae3d2b..25911cb 100644 --- a/run.sh +++ b/run.sh @@ -1,2 +1,2 @@ -export FABRIQUEDOC_ENDPOINT="http://0.0.0.0:8051" +export FABRIQUEDOC_ENDPOINT="http://0.0.0.0:8000" streamlit run main.py --server.port=8051