Spaces:
Sleeping
Sleeping
dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official Streamlit image
|
| 2 |
+
FROM streamlit/streamlit:latest
|
| 3 |
+
|
| 4 |
+
# Install dependencies
|
| 5 |
+
RUN pip install spacy
|
| 6 |
+
|
| 7 |
+
# Download the language model
|
| 8 |
+
RUN python -m spacy download en_core_web_md
|
| 9 |
+
|
| 10 |
+
# Copy the app files
|
| 11 |
+
COPY app.py /app/app.py
|
| 12 |
+
COPY requirements.txt /app/requirements.txt
|
| 13 |
+
|
| 14 |
+
# Set the working directory
|
| 15 |
+
WORKDIR /app
|
| 16 |
+
|
| 17 |
+
# Run the app
|
| 18 |
+
CMD ["streamlit", "run", "app.py"]
|