arcma commited on
Commit
cf67f9c
·
1 Parent(s): f4c1467

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,12 +1,14 @@
1
  FROM python:3.9
2
 
3
- WORKDIR /code
4
- ENV HOME /code
 
5
 
6
- COPY ./requirements.txt /code/requirements.txt
7
 
8
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
9
 
10
- COPY . .
11
- CMD chmod -R 777 /code
12
  CMD ["python", "run.py"]
 
1
  FROM python:3.9
2
 
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ WORKDIR /home/user
6
 
7
+ COPY ./requirements.txt /home/user/requirements.txt
8
 
9
+ RUN pip install --no-cache-dir --upgrade -r /home/user/requirements.txt
10
+
11
+ COPY --chown=user . .
12
+ CMD chmod -R 777 /home/user
13
 
 
 
14
  CMD ["python", "run.py"]