Spaces:
Runtime error
Runtime error
lucianotonet
commited on
Commit
•
d1cedae
1
Parent(s):
4d1cc36
Refactor Dockerfile to streamline comments and commands
Browse filesUpdated the Dockerfile for clarity by commenting out the initialization commands and model copying steps. This simplifies the build process and makes it easier to modify or troubleshoot if necessary. The addition of a CMD instruction specifies the default command, enhancing usability for future deployments.
- Dockerfile +10 -8
Dockerfile
CHANGED
@@ -10,15 +10,17 @@ ENV HOME=/home/user \
|
|
10 |
PATH=/home/user/.local/bin:$PATH \
|
11 |
OLLAMA_HOST=0.0.0.0
|
12 |
|
13 |
-
WORKDIR $HOME/app
|
14 |
|
15 |
-
# Copiar o Modelfile
|
16 |
-
COPY --chown=user:user Modelfile ./
|
17 |
|
18 |
-
# Inicializar Ollama, baixar modelo e criar LlamaClaude
|
19 |
-
RUN ollama serve & \
|
20 |
-
|
21 |
-
|
22 |
|
23 |
# Expor a porta do Ollama
|
24 |
-
EXPOSE 11434
|
|
|
|
|
|
10 |
PATH=/home/user/.local/bin:$PATH \
|
11 |
OLLAMA_HOST=0.0.0.0
|
12 |
|
13 |
+
# WORKDIR $HOME/app
|
14 |
|
15 |
+
# # Copiar o Modelfile
|
16 |
+
# COPY --chown=user:user Modelfile ./
|
17 |
|
18 |
+
# # Inicializar Ollama, baixar modelo e criar LlamaClaude
|
19 |
+
# RUN ollama serve & \
|
20 |
+
# sleep 15 && \
|
21 |
+
# ollama pull lucianotonet/llamaclaude
|
22 |
|
23 |
# Expor a porta do Ollama
|
24 |
+
EXPOSE 11434
|
25 |
+
|
26 |
+
CMD ["serve"]
|