diff --git a/deployment/deploy.sh b/deployment/deploy.sh index cf910ae..4cc6535 100644 --- a/deployment/deploy.sh +++ b/deployment/deploy.sh @@ -1,7 +1,7 @@ #!/bin/bash # Setup -apt install docker.io -y +apt install docker.io unzip -y # Cleaning previous agent rm -rf /root/libertai-agent @@ -9,9 +9,9 @@ docker stop libertai-agent && docker rm $_ # Deploying the new agent unzip /tmp/libertai-agent.zip -d /root/libertai-agent -wget https://TODO -o /tmp/libertai-agent.Dockerfile +wget https://raw.githubusercontent.com/Libertai/libertai-agents/refs/heads/reza/deployment-instances/deployment/$2.Dockerfile -O /tmp/libertai-agent.Dockerfile -q docker build /root/libertai-agent \ -f /tmp/libertai-agent.Dockerfile \ -t libertai-agent \ --build-arg PYTHON_VERSION=$1 -docker run -p 8000:8000 libertai-agent +docker run --name libertai-agent -p 8000:8000 -d libertai-agent diff --git a/deployment/pip.Dockerfile b/deployment/pip.Dockerfile index ce10a2a..a0ce871 100644 --- a/deployment/pip.Dockerfile +++ b/deployment/pip.Dockerfile @@ -12,4 +12,4 @@ COPY . . EXPOSE 8000 -CMD ["fastapi", "run", "src/main.py"] \ No newline at end of file +CMD ["fastapi", "run", "src/main.py"] diff --git a/deployment/poetry.Dockerfile b/deployment/poetry.Dockerfile index fccc46e..ca65785 100644 --- a/deployment/poetry.Dockerfile +++ b/deployment/poetry.Dockerfile @@ -14,4 +14,4 @@ COPY . . EXPOSE 8000 -CMD ["fastapi", "run", "src/main.py"] \ No newline at end of file +CMD ["fastapi", "run", "src/main.py"]