Update Dockerfile
Browse files- Dockerfile +3 -10
Dockerfile
CHANGED
@@ -1,14 +1,7 @@
|
|
1 |
-
# Start with the official Ollama Docker image
|
2 |
FROM ollama/ollama
|
3 |
|
4 |
-
#
|
5 |
-
RUN apt-get update && apt-get install -y nginx
|
6 |
-
|
7 |
-
# Copy a custom nginx configuration file
|
8 |
-
COPY nginx.conf /etc/nginx/nginx.conf
|
9 |
-
|
10 |
-
# Expose port 7860 (required by Hugging Face Spaces)
|
11 |
EXPOSE 7860
|
12 |
|
13 |
-
# Start
|
14 |
-
CMD
|
|
|
|
|
1 |
FROM ollama/ollama
|
2 |
|
3 |
+
# Expose the required port (adjust if needed)
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
EXPOSE 7860
|
5 |
|
6 |
+
# Start the Ollama service
|
7 |
+
CMD ollama serve
|