Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files2 unmodified lines345678910111213143 unmodified lines181920212223242526272829302 unmodified linesFROM rocker/r-ver:4.4.0ENV RENV_CONFIG_REPOS_OVERRIDE https://packagemanager.rstudio.com/cran/latest# create a non-root user to run the appRUN useradd --create-home appuserENV HOME=/home/appuserWORKDIR $HOMERUN apt-get update -qq && apt-get install -y --no-install-recommends \libcurl4-openssl-dev \libicu-dev \3 unmodified lineszlib1g-dev \&& apt-get clean# Create the .cache directory and give appuser permission to write to itRUN mkdir -p /home/appuser/.cache && chown -R appuser:appuser /home/appuser/.cache# Create the .cache/pins/url directory and give appuser permission to write to itRUN mkdir -p /home/appuser/.cache/pins/url && chown -R appuser:appuser /home/appuser/.cache/pins/urlCOPY /telco/ /opt/ml/telco/COPY vetiver_renv.lock renv.lockRUN Rscript -e "install.packages('renv')"RUN Rscript -e "renv::restore()"COPY plumber.R /opt/ml/plumber.R2 unmodified lines3456783 unmodified lines12131415161718192021222324252627282930312 unmodified linesFROM rocker/r-ver:4.4.0ENV RENV_CONFIG_REPOS_OVERRIDE https://packagemanager.rstudio.com/cran/latestRUN apt-get update -qq && apt-get install -y --no-install-recommends \libcurl4-openssl-dev \libicu-dev \3 unmodified lineszlib1g-dev \&& apt-get cleanCOPY vetiver_renv.lock renv.lock# create a non-root user to run the appRUN useradd --create-home appuserENV HOME=/home/appuserWORKDIR $HOME# Create the .cache directory and give appuser permission to write to itRUN mkdir -p /home/appuser/.cache && chown -R appuser:appuser /home/appuser/.cache# Create the .cache/pins/url directory and give appuser permission to write to itRUN mkdir -p /home/appuser/.cache/pins/url && chown -R appuser:appuser /home/appuser/.cache/pins/urlCOPY /telco/ /opt/ml/telco/RUN Rscript -e "install.packages('renv')"RUN Rscript -e "renv::restore()"COPY plumber.R /opt/ml/plumber.R
Dockerfile+8-7