Shivam098 commited on
Commit
06d5d04
1 Parent(s): 3611940

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -12,7 +12,14 @@ RUN chmod 644 /code/fruitful_patterns.json
12
  # Copy requirements file and install dependencies
13
  COPY ./requirements.txt /code/requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
15
 
 
 
 
16
  # Download spaCy model
17
  RUN python -m spacy download en_core_web_md
18
 
 
12
  # Copy requirements file and install dependencies
13
  COPY ./requirements.txt /code/requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
+ RUN useradd -m -u 1000 user
16
+ USER user
17
+ ENV HOME=/home/user \
18
+ PATH=/home/user/.local/bin:$PATH
19
 
20
+ WORKDIR $HOME/app
21
+
22
+ COPY --chown=user . $HOME/app
23
  # Download spaCy model
24
  RUN python -m spacy download en_core_web_md
25