Update Dockerfile
Browse files- Dockerfile +8 -5
Dockerfile
CHANGED
@@ -1,14 +1,17 @@
|
|
1 |
# Use an official Python runtime as the base image
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
-
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Copy the
|
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
|
|
|
1 |
# Use an official Python runtime as the base image
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
+
# Set the working directory within the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy the requirements.txt file into the container
|
8 |
+
COPY ./requirements.txt /app/requirements.txt
|
9 |
|
10 |
+
# Install the Python dependencies
|
11 |
+
RUN pip install -r /app/requirements.txt
|
12 |
+
|
13 |
+
# Copy the Gradio application code into the container
|
14 |
+
COPY ./app.py /app/app.py
|
15 |
|
16 |
# Download NLTK resources
|
17 |
RUN python -m nltk.downloader stopwords
|