Dev-mohamed commited on
Commit
a227e98
·
1 Parent(s): b79a3d9

add user an copy statments to docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -7,6 +7,8 @@ LABEL org.opencontainers.image.source https://github.com/serengil/deepface
7
  RUN mkdir /app
8
  RUN mkdir /app/deepface
9
 
 
 
10
  # -----------------------------------
11
  # switch to application directory
12
  WORKDIR /app
@@ -25,6 +27,7 @@ COPY --chown=user ./requirements_local /app/requirements_local.txt
25
  COPY --chown=user ./package_info.json /app/
26
  COPY --chown=user ./setup.py /app/
27
  COPY --chown=user ./README.md /app/
 
28
 
29
  # -----------------------------------
30
  # if you plan to use a GPU, you should install the 'tensorflow-gpu' package
 
7
  RUN mkdir /app
8
  RUN mkdir /app/deepface
9
 
10
+ RUN useradd -m -u 1000 user
11
+
12
  # -----------------------------------
13
  # switch to application directory
14
  WORKDIR /app
 
27
  COPY --chown=user ./package_info.json /app/
28
  COPY --chown=user ./setup.py /app/
29
  COPY --chown=user ./README.md /app/
30
+ COPY --chown=user . /app
31
 
32
  # -----------------------------------
33
  # if you plan to use a GPU, you should install the 'tensorflow-gpu' package