Wauplin HF staff commited on
Commit
65ec224
1 Parent(s): 1329369

permission

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,7 +1,5 @@
1
  FROM python:3.10
2
 
3
- WORKDIR /code
4
-
5
  RUN apt-get update && apt-get install -y \
6
  git \
7
  git-lfs \
@@ -14,6 +12,13 @@ RUN apt-get update && apt-get install -y \
14
 
15
  RUN pip install --no-cache-dir https://gradio-builds.s3.amazonaws.com/f4d696f71f3fc2f5fd8f9d5f5287cb1d27ef93d4/gradio-3.39.0-py3-none-any.whl
16
 
 
 
 
 
 
 
 
17
  COPY . .
18
 
19
  ENV MPLCONFIGDIR /tmp/configs
 
1
  FROM python:3.10
2
 
 
 
3
  RUN apt-get update && apt-get install -y \
4
  git \
5
  git-lfs \
 
12
 
13
  RUN pip install --no-cache-dir https://gradio-builds.s3.amazonaws.com/f4d696f71f3fc2f5fd8f9d5f5287cb1d27ef93d4/gradio-3.39.0-py3-none-any.whl
14
 
15
+ # User
16
+ RUN useradd -m -u 1000 user
17
+ USER user
18
+ ENV HOME=/home/user \
19
+ PATH=/home/user/.local/bin:$PATH
20
+ WORKDIR /home/user/app
21
+
22
  COPY . .
23
 
24
  ENV MPLCONFIGDIR /tmp/configs