extract streamlit config
This commit is contained in:
@ -18,7 +18,7 @@ COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/pytho
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./translator .
|
COPY ./translator .
|
||||||
EXPOSE 8501
|
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
|
# Build
|
||||||
# docker build --platform=linux/amd64 -t translator:latest .
|
# docker build --platform=linux/amd64 -t translator:latest .
|
||||||
|
|||||||
10
translator/.streamlit/config.toml
Normal file
10
translator/.streamlit/config.toml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[theme]
|
||||||
|
base = "dark"
|
||||||
|
|
||||||
|
[server]
|
||||||
|
port = 8501
|
||||||
|
enableCORS = false
|
||||||
|
enableXsrfProtection = false
|
||||||
|
|
||||||
|
[client]
|
||||||
|
toolbarMode = "minimal"
|
||||||
Reference in New Issue
Block a user