Skip to content

Commit

Permalink
- update dockerfile to fix config errors when building
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-enzlein committed May 22, 2024
1 parent d6181cc commit 3d55480
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# Base image https://hub.docker.com/u/rocker/
FROM rocker/shiny-verse:latest

# copy necessary files
## renv.lock file
#COPY ./renv.lock ./renv.lock
## app folder
COPY ./ ./app

# install renv
#RUN Rscript -e 'install.packages("renv")'
RUN apt-get update && apt-get install -y \
sudo \
libudunits2-dev \
librsvg2-dev \
tk

# set renv library path
#ENV RENV_PATHS_LIBRARY renv/library

# restore packages
#RUN Rscript -e 'renv::restore()'
## copy app folder into container
COPY ./ ./app

# install main package
RUN Rscript -e 'install.packages("devtools")'
Expand Down

0 comments on commit 3d55480

Please sign in to comment.