Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -11
Dockerfile
CHANGED
@@ -3,17 +3,6 @@
|
|
3 |
FROM rocker/r-ver:4.4.0
|
4 |
ENV RENV_CONFIG_REPOS_OVERRIDE https://packagemanager.rstudio.com/cran/latest
|
5 |
|
6 |
-
RUN apt-get update -qq && apt-get install -y --no-install-recommends \
|
7 |
-
libcurl4-openssl-dev \
|
8 |
-
libicu-dev \
|
9 |
-
libsodium-dev \
|
10 |
-
libssl-dev \
|
11 |
-
make \
|
12 |
-
zlib1g-dev \
|
13 |
-
&& apt-get clean
|
14 |
-
|
15 |
-
COPY vetiver_renv.lock renv.lock
|
16 |
-
|
17 |
# create a non-root user to run the app
|
18 |
RUN useradd --create-home appuser
|
19 |
|
@@ -26,6 +15,16 @@ RUN mkdir -p /home/appuser/.cache/pins/url && chown -R appuser:appuser /home/app
|
|
26 |
|
27 |
COPY /telco/ /opt/ml/telco/
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
RUN Rscript -e "install.packages('renv')"
|
30 |
RUN Rscript -e "renv::restore()"
|
31 |
COPY plumber.R /opt/ml/plumber.R
|
|
|
3 |
FROM rocker/r-ver:4.4.0
|
4 |
ENV RENV_CONFIG_REPOS_OVERRIDE https://packagemanager.rstudio.com/cran/latest
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
# create a non-root user to run the app
|
7 |
RUN useradd --create-home appuser
|
8 |
|
|
|
15 |
|
16 |
COPY /telco/ /opt/ml/telco/
|
17 |
|
18 |
+
RUN apt-get update -qq && apt-get install -y --no-install-recommends \
|
19 |
+
libcurl4-openssl-dev \
|
20 |
+
libicu-dev \
|
21 |
+
libsodium-dev \
|
22 |
+
libssl-dev \
|
23 |
+
make \
|
24 |
+
zlib1g-dev \
|
25 |
+
&& apt-get clean
|
26 |
+
|
27 |
+
COPY vetiver_renv.lock renv.lock
|
28 |
RUN Rscript -e "install.packages('renv')"
|
29 |
RUN Rscript -e "renv::restore()"
|
30 |
COPY plumber.R /opt/ml/plumber.R
|