This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user