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

Update Dockerfile

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 HOME=/home/user \
11
- PATH=/home/user/.local/bin:$PATH
12
 
13
- WORKDIR $HOME/app
14
- RUN chown -R admin:admin $WORKDIR
15
- RUN chmod 755 $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 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