Spaces:
Running
Running
Darshan
commited on
Commit
·
72d885b
1
Parent(s):
ad152ab
permissions issue fix
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
@@ -9,6 +9,15 @@ WORKDIR /
|
|
9 |
|
10 |
EXPOSE 7860
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# Install requirements.txt
|
13 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
14 |
|
|
|
9 |
|
10 |
EXPOSE 7860
|
11 |
|
12 |
+
RUN useradd -m -u 1000 user
|
13 |
+
USER user
|
14 |
+
ENV HOME=/home/user \
|
15 |
+
PATH=/home/user/.local/bin:$PATH
|
16 |
+
|
17 |
+
WORKDIR $HOME/app
|
18 |
+
|
19 |
+
COPY --chown=user . $HOME/app
|
20 |
+
|
21 |
# Install requirements.txt
|
22 |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
|
23 |
|