srinidhidevaraj commited on
Commit
6319fee
1 Parent(s): 2baa0be

added book

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -15,15 +15,18 @@
15
 
16
  FROM python:3.9
17
 
18
- # RUN useradd -m -u 1000 user
19
 
20
- WORKDIR /
21
  COPY ./requirements.txt requirements.txt
22
  # COPY --chown=user ./requirements.txt requirements.txt
23
 
24
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
25
  RUN apt update
26
  COPY . .
 
 
 
27
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
28
  # COPY --chown=user . /app
29
 
 
15
 
16
  FROM python:3.9
17
 
18
+ RUN useradd -m -u 1000 user
19
 
20
+ WORKDIR /home/user
21
  COPY ./requirements.txt requirements.txt
22
  # COPY --chown=user ./requirements.txt requirements.txt
23
 
24
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
25
  RUN apt update
26
  COPY . .
27
+ RUN chown -R user:user /home/user
28
+ USER user
29
+ ENV HOME /home/user
30
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
31
  # COPY --chown=user . /app
32