Spaces:
Running
Running
Michael Hu
commited on
Commit
·
c8e0bc9
1
Parent(s):
19531fa
address hf spaces permission issues
Browse fileshttps://huggingface.co/docs/hub/spaces-sdks-docker#permissions
- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -16,6 +16,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 16 |
&& apt-get clean \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# Set up working directory
|
| 20 |
WORKDIR /app
|
| 21 |
|
|
|
|
| 16 |
&& apt-get clean \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
+
# Set up a new user named "user" with user ID 1000
|
| 20 |
+
RUN useradd -m -u 1000 user
|
| 21 |
+
|
| 22 |
+
# Switch to the "user" user
|
| 23 |
+
USER user
|
| 24 |
+
|
| 25 |
# Set up working directory
|
| 26 |
WORKDIR /app
|
| 27 |
|