fix: Lift user priviledges.
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -9,6 +9,8 @@ COPY . .
|
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
|
|
|
|
12 |
|
13 |
# Change the port number of our Wave app to 7860
|
14 |
# which is default in Hugging Face Spaces.
|
|
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
+
RUN useradd -m -u 1000 user
|
13 |
+
COPY --chown=user . /code
|
14 |
|
15 |
# Change the port number of our Wave app to 7860
|
16 |
# which is default in Hugging Face Spaces.
|