mphycx commited on
Commit
8c133e2
·
1 Parent(s): 4c28492

fix permission

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -17
Dockerfile CHANGED
@@ -20,25 +20,14 @@ RUN pip3 install -r requirements_pytorch.txt
20
  RUN pip3 install -r requirements_api.txt
21
  RUN pip3 install -r requirements_app.txt
22
 
23
- COPY intfloat /intfloat
24
- COPY app.py app.py
25
- COPY api.py api.py
26
-
27
- # Set up a new user named "user" with user ID 1000
28
- RUN useradd -m -u 1000 user
29
-
30
- # Switch to the "user" user
31
- USER user
32
 
33
- # Set home to the user's home directory
34
- ENV HOME=/home/user \
35
- PATH=/home/user/.local/bin:$PATH
36
 
37
- # Set the working directory to the user's home directory
38
- WORKDIR $HOME/app
39
-
40
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
41
- COPY --chown=user . $HOME/app
42
 
43
  EXPOSE 7860
44
  EXPOSE 8080
 
20
  RUN pip3 install -r requirements_api.txt
21
  RUN pip3 install -r requirements_app.txt
22
 
23
+ RUN mkdir -p /.jina
24
+ RUN chmod 777 /.jina
 
 
 
 
 
 
 
25
 
26
+ WORKDIR /app
 
 
27
 
28
+ COPY intfloat /app/intfloat
29
+ COPY app.py app.py
30
+ COPY api.py api.py
 
 
31
 
32
  EXPOSE 7860
33
  EXPOSE 8080