acecalisto3 commited on
Commit
10e6340
·
verified ·
1 Parent(s): 4201fc4

Create DOCKERFILE

Browse files
Files changed (1) hide show
  1. DOCKERFILE +24 -0
DOCKERFILE ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as a base
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory to /app
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements file into the working directory
8
+ COPY requirements.txt .
9
+
10
+ # Install the dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Install the spacy library and download the en_core_web_sm model
14
+ RUN pip install spacy
15
+ RUN python -m spacy download en_core_web_sm
16
+
17
+ # Copy the application code into the working directory
18
+ COPY . .
19
+
20
+ # Expose the port that the application will use
21
+ EXPOSE 8000
22
+
23
+ # Run the command to start the application when the container is launched
24
+ CMD ["python", "app.py"]