itzjunayed commited on
Commit
7de112c
·
verified ·
1 Parent(s): 6f9d8ac

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the specific Python version as the base image
2
+ FROM python:3.7.6
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy your application's requirements file to the container
8
+ COPY requirements.txt .
9
+
10
+ # Install the dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+ RUN pip install detectron2 -f \
13
+ https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.7/index.html
14
+
15
+ # Copy the rest of your application code to the container
16
+ COPY . .
17
+
18
+ # Set the command to run your application
19
+ CMD ["python", "app.py"]