abdullahsajid commited on
Commit
5814783
·
verified ·
1 Parent(s): 8d82689

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +20 -0
  2. requirements.txt +7 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.8-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install any needed packages specified in requirements.txt
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Make port 8080 available to the world outside this container
14
+ EXPOSE 8080
15
+
16
+ # Define environment variable
17
+ ENV FLASK_APP=app.py
18
+
19
+ # Run app.py when the container launches
20
+ CMD ["flask", "run", "--host=0.0.0.0", "--port=8080"]
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Flask==2.2.2
2
+ Flask-Cors==4.0.0
3
+ matplotlib==3.7.2
4
+ torch==2.2.0
5
+ torchvision==0.17.0
6
+ Pillow==9.4.0
7
+ ultralytics==8.2.28