extract streamlit config

This commit is contained in:
deng
2026-05-25 13:58:29 +08:00
parent 8b296ed979
commit 9cc8ecd01a
2 changed files with 11 additions and 1 deletions

View File

@ -18,7 +18,7 @@ COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/pytho
WORKDIR /app
COPY ./translator .
EXPOSE 8501
CMD ["python", "-m", "streamlit", "run", "app.py", "--server.port=8501", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
CMD ["python", "-m", "streamlit", "run", "app.py"]
# Build
# docker build --platform=linux/amd64 -t translator:latest .

View File

@ -0,0 +1,10 @@
[theme]
base = "dark"
[server]
port = 8501
enableCORS = false
enableXsrfProtection = false
[client]
toolbarMode = "minimal"