moriire commited on
Commit
1a40879
1 Parent(s): 6496fd7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -26,7 +26,7 @@ COPY . .
26
  # Set up a new user named "user" with user ID 1000
27
  RUN useradd -u 1001 user
28
 
29
- RUN chown -R user:user .
30
 
31
  #RUN useradd -ms /bin/bash user
32
  #RUN addgroup -g 1001 -S 1000
@@ -48,7 +48,7 @@ ENV HOME=/home/user \
48
  #RUN export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
49
  #RUN export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
50
  # Set the working directory to the user's home directory
51
- WORKDIR $HOME/app
52
  #RUN chmod -R 755 $HOME/app
53
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
54
  COPY --chown=user . $HOME/app
 
26
  # Set up a new user named "user" with user ID 1000
27
  RUN useradd -u 1001 user
28
 
29
+ #RUN chown -R user:user .
30
 
31
  #RUN useradd -ms /bin/bash user
32
  #RUN addgroup -g 1001 -S 1000
 
48
  #RUN export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
49
  #RUN export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
50
  # Set the working directory to the user's home directory
51
+ WORKDIR $HOME
52
  #RUN chmod -R 755 $HOME/app
53
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
54
  COPY --chown=user . $HOME/app