Uchenna commited on
Commit
1151a7a
·
1 Parent(s): 4e25d9b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -19,6 +19,14 @@ USER user
19
  # Set home to the user's home directory
20
  ENV HOME=/home/user \
21
  PATH=/home/user/.local/bin:$PATH
 
 
 
 
 
 
 
 
22
 
23
 
24
 
 
19
  # Set home to the user's home directory
20
  ENV HOME=/home/user \
21
  PATH=/home/user/.local/bin:$PATH
22
+ # Set the working directory to the user's home directory
23
+ WORKDIR $HOME/app
24
+
25
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
26
+ COPY --chown=user . $HOME/app
27
+
28
+ # Start the FastAPI app on port 7860, the default port expected by Spaces
29
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
30
 
31
 
32