lucas-wa commited on
Commit
be8ba15
·
1 Parent(s): f5cbbd7

Fixing permission deined

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -16,6 +16,16 @@ COPY entrypoint.sh /code/entrypoint.sh
16
 
17
  RUN chmod +x /code/entrypoint.sh
18
 
 
 
 
 
 
 
 
 
 
 
19
  COPY web /code/web/
20
 
21
  RUN apt-get install -y curl
 
16
 
17
  RUN chmod +x /code/entrypoint.sh
18
 
19
+ RUN useradd -m -u 1000 user
20
+ USER user
21
+ ENV HOME=/home/user \
22
+ PATH=/home/user/.local/bin:$PATH
23
+
24
+ WORKDIR $HOME/app
25
+
26
+ COPY --chown=user . $HOME/app
27
+
28
+
29
  COPY web /code/web/
30
 
31
  RUN apt-get install -y curl