Timmyafolami commited on
Commit
7e97ce7
·
verified ·
1 Parent(s): 6c17133

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -23
Dockerfile CHANGED
@@ -1,23 +1,31 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.10-slim
3
-
4
- # Set the working directory
5
- WORKDIR /app
6
-
7
- # Copy the requirements file into the container
8
- COPY requirements.txt /app/requirements.txt
9
-
10
- # Install any needed packages specified in requirements.txt
11
- RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- # Copy the current directory contents into the container at /app
14
- COPY . /app
15
-
16
- # Download NLTK data
17
- RUN python -c "import nltk; nltk.download('stopwords'); nltk.download('wordnet')"
18
-
19
- # Make port 8000 available to the world outside this container
20
- EXPOSE 8000
21
-
22
- # Run the entrypoint script
23
- CMD ["sh", "./entrypoint.sh"]
 
 
 
 
 
 
 
 
 
1
+ title: SAMH
2
+ emoji: 📚
3
+ colorFrom: indigo
4
+ colorTo: blue
5
+ sdk: docker
6
+ pinned: false
7
+ license: apache-2.0
8
+
9
+ # Use an official Python runtime as a parent image
10
+ FROM python:3.10-slim
11
+
12
+ # Set the working directory
13
+ WORKDIR /app
14
+
15
+ # Copy the requirements file into the container
16
+ COPY requirements.txt /app/requirements.txt
17
+
18
+ # Install any needed packages specified in requirements.txt
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
+
21
+ # Copy the current directory contents into the container at /app
22
+ COPY . /app
23
+
24
+ # Download NLTK data
25
+ RUN python -c "import nltk; nltk.download('stopwords'); nltk.download('wordnet')"
26
+
27
+ # Make port 8000 available to the world outside this container
28
+ EXPOSE 8000
29
+
30
+ # Run the entrypoint script
31
+ CMD ["sh", "./entrypoint.sh"]