tomas-gajarsky commited on
Commit
c08d785
1 Parent(s): 2019b16

Add code to home/user

Browse files
Files changed (1) hide show
  1. 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 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
 
 
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