[main]: fix Dockerfile
Build and Push Docker Image / build (push) Failing after 24m7s

This commit is contained in:
John Gatward
2026-08-04 20:26:46 +01:00
parent 104b90ad4f
commit c7dedf471d
2 changed files with 19 additions and 7 deletions
+3 -3
View File
@@ -22,11 +22,11 @@ COPY . /srv/shiny-server/
# Prevent renv attempting to use pak
ENV RENV_CONFIG_PAK_ENABLED=FALSE
ENV CFLAGS=-Wno-error=format-security
# Install renv and restore project packages
RUN R -e "install.packages('renv', repos='https://cran.rstudio.com'); \
renv::init(bare = TRUE); \
renv::restore(prompt = FALSE)"
RUN R --vanilla -e "install.packages('renv', repos='https://cran.rstudio.com')" && \
R --vanilla -e "renv::restore(project='/srv/shiny-server', lockfile='/srv/shiny-server/renv.lock', prompt=FALSE)"
# Permissions
RUN chown -R shiny:shiny /srv/shiny-server