When deploying an app on Google Cloud Run, the following error shows when executing any st_javascript script.
Using Streamlit Community Cloud or localhost, the app works without problems.
#Base Image to use
FROM python:3.10-slim
#Expose port 8080
EXPOSE 8080
#Copy Requirements.txt file into app directory
COPY requirements.txt app/requirements.txt
#install all requirements in requirements.txt
RUN python -m pip install --upgrade pip && pip install -r app/requirements.txt
#Copy all files in current directory into app directory
COPY . /app
#Change Working Directory to app directory
WORKDIR /app
#Run the application on port 8080
ENTRYPOINT ["streamlit", "run", "app.py", \
"--server.port=8080", \
"--client.showErrorDetails=false", \
"--client.toolbarMode=viewer"]
When deploying an app on Google Cloud Run, the following error shows when executing any
st_javascript
script. Using Streamlit Community Cloud or localhost, the app works without problems.st_javascript
call:st_javascript('''[window.innerWidth, parent.window.innerHeight];''', key=...)
Dokerfile: