Spaces:
Running
Running
set user write permission (#1)
Browse files- set user write permission (67e0cf40259a9881670b360f0887616d540d53e3)
Co-authored-by: Radamés Ajna <radames@users.noreply.huggingface.co>
- Dockerfile +10 -1
Dockerfile
CHANGED
@@ -10,7 +10,16 @@ COPY ./requirements.txt /code/requirements.txt
|
|
10 |
RUN apt update && apt install -y ffmpeg
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
ENV H2O_WAVE_LISTEN=":7860"
|
16 |
ENV H2O_WAVE_ADDRESS='http://127.0.0.1:7860'
|
|
|
10 |
RUN apt update && apt install -y ffmpeg
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
12 |
|
13 |
+
RUN useradd -m -u 1000 user
|
14 |
+
|
15 |
+
USER user
|
16 |
+
|
17 |
+
ENV HOME=/home/user \
|
18 |
+
PATH=/home/user/.local/bin:$PATH
|
19 |
+
|
20 |
+
WORKDIR $HOME/app
|
21 |
+
|
22 |
+
COPY --chown=user . $HOME/app
|
23 |
|
24 |
ENV H2O_WAVE_LISTEN=":7860"
|
25 |
ENV H2O_WAVE_ADDRESS='http://127.0.0.1:7860'
|