kristada673 commited on
Commit
3233aa6
1 Parent(s): 88c1065

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN pip install virtualenv && virtualenv venv -p python3
4
+ ENV VIRTUAL_ENV=/venv
5
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
6
+
7
+ WORKDIR /app
8
+ COPY requirements.txt ./
9
+ RUN pip install -r requirements.txt
10
+
11
+ RUN git clone https://github.com/facebookresearch/detectron2.git
12
+ RUN python -m pip install -e detectron2
13
+
14
+ # Install dependencies
15
+ RUN apt-get update && apt-get install libgl1 -y
16
+ RUN pip install -U nltk
17
+ RUN [ "python3", "-c", "import nltk; nltk.download('punkt', download_dir='/usr/local/nltk_data')" ]
18
+
19
+ COPY . /app
20
+
21
+ # Run the application:
22
+ CMD ["python", "-u", "app.py"]