Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -24,10 +24,14 @@ COPY --from=build /app/next-i18next.config.js ./next-i18next.config.js
|
|
| 24 |
|
| 25 |
# Set the environment variable
|
| 26 |
ENV DEFAULT_MODEL="mistral:latest"
|
| 27 |
-
ENV OLLAMA_HOST="http://
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
# Expose the port the app will run on
|
| 30 |
-
EXPOSE 3000
|
| 31 |
|
| 32 |
# Start the application
|
| 33 |
-
CMD ["npm", "start"]
|
|
|
|
| 24 |
|
| 25 |
# Set the environment variable
|
| 26 |
ENV DEFAULT_MODEL="mistral:latest"
|
| 27 |
+
ENV OLLAMA_HOST="http://localhost:7860"
|
| 28 |
+
|
| 29 |
+
# Install Ollama AI
|
| 30 |
+
RUN apk add --no-cache docker-cli
|
| 31 |
+
RUN docker pull ollama/ollama:latest
|
| 32 |
|
| 33 |
# Expose the port the app will run on
|
| 34 |
+
EXPOSE 3000 7860
|
| 35 |
|
| 36 |
# Start the application
|
| 37 |
+
CMD ["npm", "start"]
|