This commit is contained in:
@@ -48,6 +48,13 @@ COPY . /srv/shiny-server/
|
||||
# Permissions
|
||||
RUN chown -R shiny:shiny /srv/shiny-server
|
||||
|
||||
# Fail the image build if the app cannot start in the same user context as
|
||||
# Shiny Server, rather than discovering startup errors after deployment.
|
||||
RUN su -s /bin/sh shiny -c "cd /srv/shiny-server && R --vanilla -e 'source(\".Rprofile\"); source(\"global.R\")'"
|
||||
|
||||
EXPOSE 3838
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=90s --retries=3 \
|
||||
CMD curl --fail --silent --show-error http://127.0.0.1:3838/ || exit 1
|
||||
|
||||
CMD ["/usr/bin/shiny-server"]
|
||||
Reference in New Issue
Block a user