Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +31 -23
Dockerfile
CHANGED
|
@@ -1,23 +1,31 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|