Spaces:
Sleeping
Sleeping
debugged Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -23,8 +23,9 @@ COPY vetiver_renv.lock renv.lock
|
|
23 |
RUN mkdir -p /home/appuser/.cache && chown -R appuser:appuser /home/appuser/.cache
|
24 |
# Create the .cache/pins/url directory and give appuser permission to write to it
|
25 |
RUN mkdir -p /home/appuser/.cache/pins/url && chown -R appuser:appuser /home/appuser/.cache/pins/url
|
26 |
-
|
27 |
RUN Rscript -e "install.packages('renv')"
|
|
|
28 |
RUN Rscript -e "renv::restore()"
|
29 |
COPY plumber.R /opt/ml/plumber.R
|
30 |
EXPOSE 7860
|
|
|
23 |
RUN mkdir -p /home/appuser/.cache && chown -R appuser:appuser /home/appuser/.cache
|
24 |
# Create the .cache/pins/url directory and give appuser permission to write to it
|
25 |
RUN mkdir -p /home/appuser/.cache/pins/url && chown -R appuser:appuser /home/appuser/.cache/pins/url
|
26 |
+
USER root
|
27 |
RUN Rscript -e "install.packages('renv')"
|
28 |
+
USER appuser
|
29 |
RUN Rscript -e "renv::restore()"
|
30 |
COPY plumber.R /opt/ml/plumber.R
|
31 |
EXPOSE 7860
|