lucianotonet commited on
Commit
13819bc
1 Parent(s): 05722f9

Set up app directory and copy Modelfile in Docker setup

Browse files

Enhanced the Dockerfile by establishing a working directory for the application and copying the Modelfile with appropriate ownership. This streamlines the build process, ensuring the necessary files are in place for initialization, ultimately improving deployment efficiency.

Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -11,6 +11,9 @@ ENV HOME=/home/user \
11
  PATH=/home/user/.local/bin:$PATH \
12
  OLLAMA_HOST=0.0.0.0
13
 
 
 
 
14
 
15
  # Cria um script de inicialização
16
  RUN ollama serve & sleep 10 && ollama pull llama3.1 && ollama create LlamaClaude -f ./Modelfile
 
11
  PATH=/home/user/.local/bin:$PATH \
12
  OLLAMA_HOST=0.0.0.0
13
 
14
+ WORKDIR $HOME/app
15
+
16
+ COPY --chown=user:user Modelfile $HOME/app/
17
 
18
  # Cria um script de inicialização
19
  RUN ollama serve & sleep 10 && ollama pull llama3.1 && ollama create LlamaClaude -f ./Modelfile