Spaces:
Runtime error
Runtime error
pengdaqian
commited on
Commit
•
27e0bdf
1
Parent(s):
8116885
init scan
Browse files- Dockerfile +10 -2
Dockerfile
CHANGED
@@ -5,8 +5,16 @@ WORKDIR /app
|
|
5 |
COPY requirements.txt requirements.txt
|
6 |
RUN pip3 install -r requirements.txt
|
7 |
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
COPY . .
|
12 |
|
|
|
5 |
COPY requirements.txt requirements.txt
|
6 |
RUN pip3 install -r requirements.txt
|
7 |
|
8 |
+
|
9 |
+
RUN useradd -m -u 1000 user
|
10 |
+
USER user
|
11 |
+
ENV HOME=/home/user \
|
12 |
+
PATH=/home/user/.local/bin:$PATH
|
13 |
+
HF_HOME=/app/.cache/huggingface
|
14 |
+
|
15 |
+
WORKDIR $HOME/app
|
16 |
+
|
17 |
+
COPY --chown=user . $HOME/app
|
18 |
|
19 |
COPY . .
|
20 |
|