ahmedzein commited on
Commit
af820e3
·
verified ·
1 Parent(s): 9bddd48

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -1,5 +1,8 @@
1
  # Use the official Python 3.10.9 image
2
  FROM ubuntu
 
 
 
3
 
4
  WORKDIR /usr/src/app
5
  # RUN add-apt-repository main
@@ -17,8 +20,7 @@ COPY . .
17
 
18
  ENV HF_HOME=/tmp
19
  ENV TRANSFORMERS_CACHE=/tmp
20
- RUN mkdir -p /usr/src/app/
21
- RUN chown -R /usr/src/app/
22
 
23
 
24
  # Start the FastAPI app on port 7860, the default port expected by Spaces
 
1
  # Use the official Python 3.10.9 image
2
  FROM ubuntu
3
+ RUN adduser xyz
4
+ RUN mkdir -p /usr/src/app/
5
+ RUN chown -R xyz:xyz /usr/src/app/
6
 
7
  WORKDIR /usr/src/app
8
  # RUN add-apt-repository main
 
20
 
21
  ENV HF_HOME=/tmp
22
  ENV TRANSFORMERS_CACHE=/tmp
23
+
 
24
 
25
 
26
  # Start the FastAPI app on port 7860, the default port expected by Spaces