Spaces:
Runtime error
Runtime error
Create dockerfile
Browse files- dockerfile +18 -0
dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official Ollama image
|
| 2 |
+
FROM ollama/ollama:latest
|
| 3 |
+
|
| 4 |
+
RUN apt-get update && apt-get install -y python3-pip && rm -rf /var/lib/apt/lists/*
|
| 5 |
+
|
| 6 |
+
# Upgrade pip and install Python dependencies
|
| 7 |
+
RUN pip3 install --upgrade pip && \
|
| 8 |
+
pip3 install gradio langchain
|
| 9 |
+
|
| 10 |
+
# Set the working directory and copy your application code
|
| 11 |
+
WORKDIR /app
|
| 12 |
+
COPY . /app
|
| 13 |
+
|
| 14 |
+
# Expose the port Hugging Face Spaces expects
|
| 15 |
+
EXPOSE 8080
|
| 16 |
+
|
| 17 |
+
# Run Gradio app
|
| 18 |
+
CMD ["python3", "app.py"]
|