abhishekrs4 commited on
Commit
ee97459
1 Parent(s): 649e70a

updated dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -10,6 +10,16 @@ RUN apt-get update -y && \
10
  # can copy files only from current working directory where docker builds
11
  # cannot copy files from arbitrary directories
12
 
 
 
 
 
 
 
 
 
 
 
13
  COPY ./artifacts/ /data/models/
14
  COPY ./requirements.txt .
15
 
 
10
  # can copy files only from current working directory where docker builds
11
  # cannot copy files from arbitrary directories
12
 
13
+ # User
14
+ RUN useradd -m -u 1000 user
15
+ USER user
16
+ ENV HOME /home/user
17
+ ENV PATH $HOME/.local/bin:$PATH
18
+
19
+ WORKDIR $HOME
20
+ RUN mkdir app
21
+ WORKDIR $HOME/app
22
+
23
  COPY ./artifacts/ /data/models/
24
  COPY ./requirements.txt .
25