Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as the base image
|
2 |
+
FROM python:3.9-slim
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the current directory contents into the container at /app
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
+
# Install dependencies
|
11 |
+
RUN pip install -r requirements.txt
|
12 |
+
|
13 |
+
# Download NLTK resources
|
14 |
+
RUN python -m nltk.downloader stopwords
|
15 |
+
RUN python -m nltk.downloader wordnet
|
16 |
+
|
17 |
+
# Expose port 7860 to access the Gradio interface
|
18 |
+
EXPOSE 7860
|
19 |
+
|
20 |
+
# Command to run the Gradio app
|
21 |
+
CMD ["python", "app.py"]
|