Spaces:
Running
Running
tomas-gajarsky
commited on
Commit
•
2019b16
1
Parent(s):
9c74fd7
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -7,12 +7,12 @@ RUN useradd -m -u 1000 user
|
|
7 |
USER user
|
8 |
|
9 |
# Set home to the user's home directory
|
10 |
-
ENV
|
11 |
-
PATH=/
|
12 |
|
13 |
-
WORKDIR $
|
14 |
-
RUN chown -R
|
15 |
-
RUN chmod
|
16 |
|
17 |
COPY --chown=user requirements.txt $WORKDIR/requirements.txt
|
18 |
|
|
|
7 |
USER user
|
8 |
|
9 |
# Set home to the user's home directory
|
10 |
+
ENV WORKDIR=/code \
|
11 |
+
PATH=/code/.local/bin:$PATH
|
12 |
|
13 |
+
WORKDIR $WORKDIR
|
14 |
+
RUN chown -R user:user $WORKDIR
|
15 |
+
RUN chmod 777 $WORKDIR
|
16 |
|
17 |
COPY --chown=user requirements.txt $WORKDIR/requirements.txt
|
18 |
|