Shiny on Google App Engine with Docker

Lately, I was trying to upload Shiny App with Docker on Google App Engine (on Google Cloud Platform).
Following tutorial (, I used Docker Image as below:

FROM rocker/shiny

# install R package dependencies
RUN apt-get update && apt-get install -y libssl-dev
## Install packages from CRAN
RUN R -e "install.packages(c('shiny', 'shinydashboard', 'here', 'dplyr', 'ggplot2', 'ggthemes', 'shinythemes', 'plotly', 'shinyWidgets', 'data.table'), repos='')"


## copy configuration file
COPY shiny-server.conf /etc/shiny-server/shiny-server.conf

## assume shiny app is in build folder /shiny
COPY ./app/ /srv/shiny-server/app/

However, I encountered the WebSocket Error that prevents Shiny app from working properly.
Maybe someone managed to succesfully deploy Shiny on App Engine and can share his working example code?

You have to be on the beta of websocket support for App Engine flexible, you can see some discussion in this issue

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.