Zai commited on
Commit
b25d941
·
1 Parent(s): c2ea21f
Files changed (2) hide show
  1. Dockerfile +4 -7
  2. requirements.txt +2 -2
Dockerfile CHANGED
@@ -10,11 +10,8 @@ COPY . /app
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Make port 7860 available to the world outside this container
14
- EXPOSE 7860
15
 
16
- # Define environment variable
17
- ENV NAME World
18
-
19
- # Run app.py when the container launches
20
- CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Expose port 8000 for Hugging Face Inference API
14
+ EXPOSE 8000
15
 
16
+ # Run the application when the container launches
17
+ CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
 
 
 
requirements.txt CHANGED
@@ -1,7 +1,7 @@
1
  Django==3.2.5
 
 
2
  opencv-python==4.5.3.56
3
  scipy==1.7.0
4
  pandas==1.3.0
5
  shapely==1.7.1
6
- torch==1.8.0
7
- torchvision==0.9.0
 
1
  Django==3.2.5
2
+ torch==1.8.0
3
+ torchvision==0.9.0
4
  opencv-python==4.5.3.56
5
  scipy==1.7.0
6
  pandas==1.3.0
7
  shapely==1.7.1