Spaces:
Runtime error
Runtime error
Delete Dockerfile
Browse files- Dockerfile +0 -33
Dockerfile
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
# Use an official image that includes curl and bash
|
2 |
-
FROM ubuntu:20.04
|
3 |
-
|
4 |
-
# Install necessary packages
|
5 |
-
RUN apt-get update && apt-get install -y \
|
6 |
-
curl \
|
7 |
-
bash \
|
8 |
-
python3 \
|
9 |
-
python3-pip
|
10 |
-
|
11 |
-
# Upgrade pip to the latest version
|
12 |
-
RUN python3 -m pip install --upgrade pip
|
13 |
-
|
14 |
-
# Install Ollama using the official installation script
|
15 |
-
RUN curl -fsSL https://ollama.com/install.sh | sh
|
16 |
-
|
17 |
-
# Pull the llama3 model
|
18 |
-
RUN ollama serve & ollama pull llama3
|
19 |
-
|
20 |
-
# Set up the working directory
|
21 |
-
WORKDIR /app
|
22 |
-
|
23 |
-
# Copy your application code into the Docker container
|
24 |
-
COPY . /app
|
25 |
-
|
26 |
-
# Install Python dependencies from requirements.txt (Gradio, etc.)
|
27 |
-
RUN pip install -r requirements.txt
|
28 |
-
|
29 |
-
# Expose the port for the Gradio app and Ollama
|
30 |
-
EXPOSE 7860
|
31 |
-
|
32 |
-
# Start Ollama and your Gradio app
|
33 |
-
CMD ["bash", "-c", "ollama serve & ollama pull llama3 && python3 app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|