asritha22bce commited on
Commit
82ccfe2
·
verified ·
1 Parent(s): 65ab6eb

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python image
2
+ FROM python:3.10
3
+
4
+ # Set the working directory
5
+ WORKDIR /home/user/app
6
+
7
+ # Copy and install dependencies
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Install the spaCy model inside the Docker container
12
+ RUN python -m spacy download en_core_web_sm
13
+
14
+ # Copy the rest of your application
15
+ COPY . .
16
+
17
+ # Set the command to run your app
18
+ CMD ["python", "app.py"]