malmukhtar commited on
Commit
3a556ff
·
1 Parent(s): 06d3739

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,6 +1,7 @@
1
  FROM python:3.9
2
 
3
- ENV HF_HOME /accessibility_classifier
 
4
 
5
  WORKDIR /code
6
 
@@ -8,6 +9,6 @@ COPY ./requirements.txt /code/requirements.txt
8
 
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
 
11
- COPY . .
12
 
13
  CMD ["uvicorn", "accessibility_classifier.api:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9
2
 
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
 
6
  WORKDIR /code
7
 
 
9
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
+ COPY --chown=user . .
13
 
14
  CMD ["uvicorn", "accessibility_classifier.api:app", "--host", "0.0.0.0", "--port", "7860"]