omkar56 commited on
Commit
3c2fc7c
1 Parent(s): 18fe93f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -8,13 +8,13 @@ WORKDIR /code
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
- # RUN useradd -m -u 1000 user
12
- # USER user
13
- # ENV HOME=/home/user \
14
- # PATH=/home/user/.local/bin:$PATH
15
 
16
- # WORKDIR $HOME/app
17
- # COPY --chown=user . $HOME/app
18
  # RUN chown -R user:user models
19
  # RUN chmod +w models
20
  # RUN chmod 777 models
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
+ RUN useradd -m -u 1000 user
12
+ USER user
13
+ ENV HOME=/home/user \
14
+ PATH=/home/user/.local/bin:$PATH
15
 
16
+ WORKDIR $HOME/app
17
+ COPY --chown=user . $HOME/app
18
  # RUN chown -R user:user models
19
  # RUN chmod +w models
20
  # RUN chmod 777 models