HuguesdeF commited on
Commit
671bf4d
1 Parent(s): 7141245
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -11,9 +11,14 @@ RUN apt-get update && apt-get install -y \
11
  imagemagick \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- WORKDIR /moulinette
15
- RUN mkdir /moulinette/images
16
- COPY . .
 
 
 
 
 
17
  RUN echo $(ls -1 .. )
18
 
19
  RUN pip3 install -r requirements.txt
 
11
  imagemagick \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ RUN useradd -m -u 1000 user
15
+ USER user
16
+ ENV HOME=/home/user \
17
+ PATH=/home/user/.local/bin:$PATH
18
+
19
+ WORKDIR $HOME/moulinette
20
+ RUN mkdir $HOME/moulinette/images
21
+ COPY --chown=user . $HOME/moulinette
22
  RUN echo $(ls -1 .. )
23
 
24
  RUN pip3 install -r requirements.txt