Spaces:
Sleeping
Sleeping
test2023h5
commited on
Commit
•
bd2b136
1
Parent(s):
096aced
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
@@ -6,8 +6,14 @@ COPY ./requirements.txt /code/requirements.txt
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
COPY . .
|
13 |
|
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
+
USER user
|
10 |
+
|
11 |
+
ENV HOME=/home/user \
|
12 |
+
PATH=/home/user/.local/bin:$PATH
|
13 |
+
|
14 |
+
WORKDIR $HOME/app
|
15 |
+
|
16 |
+
COPY --chown=user . $HOME/app
|
17 |
|
18 |
COPY . .
|
19 |
|