rosyvs commited on
Commit
9636874
·
1 Parent(s): ff6eb07

Fix directory path in Dockerfile for result and log directories

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -25,6 +25,7 @@ ENV HOME=/home/user \
25
 
26
  # Set the working directory to the user's home directory
27
  WORKDIR $HOME/app
 
28
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
29
  COPY --chown=user . $HOME/app
30
 
@@ -35,7 +36,7 @@ ENV MPLCONFIGDIR /tmp/matplotlib
35
  # Create and set permissions for result directories and logs inside the container
36
  # Using a loop can reduce the number of layers and make the Dockerfile cleaner
37
  RUN for dir in results logs; do \
38
- mkdir /app/$dir && chmod -R 777 /app/$dir; \
39
  done
40
 
41
  # Copy all Python files from the current directory to the container
 
25
 
26
  # Set the working directory to the user's home directory
27
  WORKDIR $HOME/app
28
+
29
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
30
  COPY --chown=user . $HOME/app
31
 
 
36
  # Create and set permissions for result directories and logs inside the container
37
  # Using a loop can reduce the number of layers and make the Dockerfile cleaner
38
  RUN for dir in results logs; do \
39
+ mkdir $HOME/app/$dir && chmod -R 777 $HOME/app/$dir; \
40
  done
41
 
42
  # Copy all Python files from the current directory to the container