fix(dockerfile): port fix

This commit is contained in:
faycal 2025-03-10 22:13:50 +01:00
parent ffe3fb4419
commit e5447280af
2 changed files with 12 additions and 12 deletions

View File

@ -29,10 +29,10 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose the port the app runs on
EXPOSE 8501
EXPOSE 8080
# Command to run the application
CMD ["streamlit", "run", "./webui/Main.py","--browser.serverAddress=127.0.0.1","--server.enableCORS=True","--browser.gatherUsageStats=False"]
CMD ["streamlit", "run", "./webui/Main.py","--browser.serverAddress=127.0.0.1","--server.enableCORS=True","--browser.gatherUsageStats=False","--server.port=8080"]
# 1. Build the Docker image using the following command
# docker build -t moneyprinterturbo .

View File

@ -2,16 +2,16 @@ x-common-volumes: &common-volumes
- ./:/MoneyPrinterTurbo
services:
webui:
build:
context: .
dockerfile: Dockerfile
container_name: "webui"
ports:
- "8501:8501"
command: [ "streamlit", "run", "./webui/Main.py","--browser.serverAddress=127.0.0.1","--server.enableCORS=True","--browser.gatherUsageStats=False" ]
volumes: *common-volumes
restart: always
# webui:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: "webui"
# ports:
# - "8501:8501"
# command: [ "streamlit", "run", "./webui/Main.py","--browser.serverAddress=127.0.0.1","--server.enableCORS=True","--browser.gatherUsageStats=False" ]
# volumes: *common-volumes
# restart: always
api:
build:
context: .