cerkut commited on
Commit
571239b
1 Parent(s): dbe129a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -6,15 +6,10 @@ WORKDIR /app
6
 
7
  ADD . /app
8
 
9
- # Set up a new user named "user" with user ID 1000
10
- RUN useradd -m -u 1000 user
11
- # Switch to the "user" user
12
- USER user
13
- # Set home to the user's home directory
14
-
15
  RUN apt-get update && apt-get install -y libgomp1
16
 
17
  RUN pip install -r requirements.txt
18
 
19
- # Start the FastAPI app on port 7860, the default port expected by Spaces
20
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
6
 
7
  ADD . /app
8
 
 
 
 
 
 
 
9
  RUN apt-get update && apt-get install -y libgomp1
10
 
11
  RUN pip install -r requirements.txt
12
 
13
+ EXPOSE 8000
14
+
15
+ CMD ["python", "lr_api.py"]