mirror of
https://github.com/harry0703/MoneyPrinterTurbo.git
synced 2026-03-05 14:27:36 +08:00
fix(dockerfile): port fix
This commit is contained in:
parent
ffe3fb4419
commit
e5447280af
@ -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 .
|
||||
|
||||
@ -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: .
|
||||
|
||||
Loading…
Reference in New Issue
Block a user