Spaces:
Running
Running
tomas-gajarsky
commited on
Commit
•
c08d785
1
Parent(s):
2019b16
Add code to home/user
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 user:user $WORKDIR
|
15 |
-
RUN chmod 777 $WORKDIR
|
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 HOME=/home/user \
|
11 |
+
PATH=/home/user/.local/bin:$PATH
|
12 |
|
13 |
+
WORKDIR $HOME/code
|
14 |
+
#RUN chown -R user:user $WORKDIR
|
15 |
+
#RUN chmod 777 $WORKDIR
|
16 |
|
17 |
COPY --chown=user requirements.txt $WORKDIR/requirements.txt
|
18 |
|