Spaces:
Runtime error
Runtime error
adding user
Browse files- Dockerfile +10 -3
Dockerfile
CHANGED
@@ -1,8 +1,17 @@
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
-
RUN useradd -m -u 1000 shiny
|
3 |
|
4 |
FROM rocker/shiny
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
RUN apt-get update && apt-get install -y \
|
7 |
--no-install-recommends \
|
8 |
git-core \
|
@@ -19,6 +28,4 @@ ENV _R_SHLIB_STRIP_=true
|
|
19 |
|
20 |
# COPY ./app/* /srv/shiny-server/
|
21 |
|
22 |
-
# USER shiny
|
23 |
-
|
24 |
EXPOSE 3838
|
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
|
|
2 |
|
3 |
FROM rocker/shiny
|
4 |
|
5 |
+
RUN useradd -m -u 1000 user
|
6 |
+
|
7 |
+
chown -R user /var/lib/shiny-server/
|
8 |
+
chown -R user /var/log/shiny-server/
|
9 |
+
chown -R user /srv/shiny-server/
|
10 |
+
chown -R user /opt/shiny-server/
|
11 |
+
chown -R user /etc/shiny-server/
|
12 |
+
|
13 |
+
User user
|
14 |
+
|
15 |
RUN apt-get update && apt-get install -y \
|
16 |
--no-install-recommends \
|
17 |
git-core \
|
|
|
28 |
|
29 |
# COPY ./app/* /srv/shiny-server/
|
30 |
|
|
|
|
|
31 |
EXPOSE 3838
|