Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -11
Dockerfile
CHANGED
@@ -7,21 +7,15 @@ WORKDIR /app
|
|
7 |
# Install necessary packages
|
8 |
RUN pip install --no-cache-dir flask requests duckduckgo_search
|
9 |
|
10 |
-
# Copy the requirements file (if you have one)
|
11 |
-
# COPY requirements.txt .
|
12 |
-
|
13 |
-
# Install any needed packages specified in requirements.txt
|
14 |
-
# RUN pip install --no-cache-dir -r requirements.txt
|
15 |
-
|
16 |
# Download the script from the private Hugging Face dataset
|
17 |
RUN apt-get update && apt-get install -y wget
|
18 |
RUN wget https://huggingface.co/datasets/qdqd/ddsg-api/resolve/main/api.py -O /app/api.py
|
19 |
|
20 |
-
# Make port
|
21 |
-
EXPOSE
|
22 |
|
23 |
-
# Define environment variable
|
24 |
ENV FLASK_APP=api.py
|
25 |
|
26 |
-
# Run the Flask application
|
27 |
-
CMD ["flask", "run", "--host=0.0.0.0", "--port=
|
|
|
7 |
# Install necessary packages
|
8 |
RUN pip install --no-cache-dir flask requests duckduckgo_search
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
# Download the script from the private Hugging Face dataset
|
11 |
RUN apt-get update && apt-get install -y wget
|
12 |
RUN wget https://huggingface.co/datasets/qdqd/ddsg-api/resolve/main/api.py -O /app/api.py
|
13 |
|
14 |
+
# Make port 7860 available to the world outside this container
|
15 |
+
EXPOSE 7860
|
16 |
|
17 |
+
# Define environment variable for Flask
|
18 |
ENV FLASK_APP=api.py
|
19 |
|
20 |
+
# Run the Flask application on port 7860
|
21 |
+
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]
|