Spaces:
Runtime error
Runtime error
Commit
·
fc628dc
1
Parent(s):
3f641c2
create user lib
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -8,7 +8,11 @@ USER user
|
|
| 8 |
|
| 9 |
# Set home to the user's home directory
|
| 10 |
ENV HOME=/home/user \
|
| 11 |
-
PATH=/home/user/.local/bin:$PATH
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Set the working directory to the user's home directory
|
| 14 |
WORKDIR $HOME/app
|
|
@@ -21,7 +25,8 @@ RUN install2.r --error \
|
|
| 21 |
bslib \
|
| 22 |
httpuv \
|
| 23 |
purrr \
|
| 24 |
-
glue
|
|
|
|
| 25 |
|
| 26 |
RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true
|
| 27 |
|
|
|
|
| 8 |
|
| 9 |
# Set home to the user's home directory
|
| 10 |
ENV HOME=/home/user \
|
| 11 |
+
PATH=/home/user/.local/bin:$PATH \
|
| 12 |
+
R_LIBS_USER=$HOME/R/library
|
| 13 |
+
|
| 14 |
+
# Create a personal R library directory
|
| 15 |
+
RUN mkdir -p $R_LIBS_USER
|
| 16 |
|
| 17 |
# Set the working directory to the user's home directory
|
| 18 |
WORKDIR $HOME/app
|
|
|
|
| 25 |
bslib \
|
| 26 |
httpuv \
|
| 27 |
purrr \
|
| 28 |
+
glue \
|
| 29 |
+
httr2
|
| 30 |
|
| 31 |
RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true
|
| 32 |
|