mirror of
https://github.com/dylanbenzi/hurricane_normalization_app.git
synced 2026-07-29 21:01:27 +00:00
update dockerfile to chown on copy
This commit is contained in:
+12
-14
@@ -26,10 +26,10 @@ RUN apt-get update && apt-get install -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p renv
|
||||
COPY renv.lock renv.lock
|
||||
COPY .Rprofile .Rprofile
|
||||
COPY renv/activate.R renv/activate.R
|
||||
COPY renv/settings.json renv/settings.json
|
||||
COPY --chown=shiny:shiny renv.lock renv.lock
|
||||
COPY --chown=shiny:shiny .Rprofile .Rprofile
|
||||
COPY --chown=shiny:shiny renv/activate.R renv/activate.R
|
||||
COPY --chown=shiny:shiny renv/settings.json renv/settings.json
|
||||
|
||||
RUN mkdir -p renv/.cache
|
||||
ENV RENV_PATHS_CACHE=renv/.cache
|
||||
@@ -61,18 +61,16 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
RUN mkdir -p /srv/shiny-server/app
|
||||
|
||||
COPY --from=renv-base /app/renv /srv/shiny-server/app/renv
|
||||
COPY --from=renv-base /app/.Rprofile /srv/shiny-server/app/.Rprofile
|
||||
COPY --from=renv-base /app/renv.lock /srv/shiny-server/app/renv.lock
|
||||
COPY --chown=shiny:shiny --from=renv-base /app/renv /srv/shiny-server/app/renv
|
||||
COPY --chown=shiny:shiny --from=renv-base /app/.Rprofile /srv/shiny-server/app/.Rprofile
|
||||
COPY --chown=shiny:shiny --from=renv-base /app/renv.lock /srv/shiny-server/app/renv.lock
|
||||
|
||||
COPY dashboard.Rmd /srv/shiny-server/app/index.Rmd
|
||||
COPY queries.R /srv/shiny-server/app/
|
||||
COPY utils.R /srv/shiny-server/app/
|
||||
COPY config.yml /srv/shiny-server/app/
|
||||
COPY --chown=shiny:shiny dashboard.Rmd /srv/shiny-server/app/index.Rmd
|
||||
COPY --chown=shiny:shiny queries.R /srv/shiny-server/app/
|
||||
COPY --chown=shiny:shiny utils.R /srv/shiny-server/app/
|
||||
COPY --chown=shiny:shiny config.yml /srv/shiny-server/app/
|
||||
|
||||
COPY shiny-server.conf /etc/shiny-server/shiny-server.conf
|
||||
|
||||
RUN chown -R shiny:shiny /srv/shiny-server/app
|
||||
COPY --chown=shiny:shiny shiny-server.conf /etc/shiny-server/shiny-server.conf
|
||||
|
||||
EXPOSE 3838
|
||||
|
||||
|
||||
Reference in New Issue
Block a user