Skip to content

Commit

Permalink
fix(deploy): Entrypoint command passed directly in CLI run
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Jan 20, 2025
1 parent 56f200d commit 24fad7c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
5 changes: 2 additions & 3 deletions deployment/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ wget https://raw.githubusercontent.com/Libertai/libertai-agents/refs/heads/reza/
docker build $CODE_PATH \
-f $DOCKERFILE_PATH \
-t libertai-agent \
--build-arg PYTHON_VERSION=$1 \
--build-arg ENTRYPOINT=$ENTRYPOINT
docker run --name libertai-agent -p 8000:8000 -d libertai-agent
--build-arg PYTHON_VERSION=$1
docker run --name libertai-agent -p 8000:8000 -d libertai-agent $ENTRYPOINT

# Cleanup
rm -f $ZIP_PATH
Expand Down
4 changes: 0 additions & 4 deletions deployment/poetry.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ ARG PYTHON_VERSION=3.12

FROM python:${PYTHON_VERSION}-slim

ARG ENTRYPOINT="fastapi run src/main.py"

WORKDIR /app

COPY pyproject.toml poetry.lock ./
Expand All @@ -15,5 +13,3 @@ RUN pip install --no-cache-dir poetry && \
COPY . .

EXPOSE 8000

ENTRYPOINT ${ENTRYPOINT}
4 changes: 0 additions & 4 deletions deployment/pyproject.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ ARG PYTHON_VERSION=3.12

FROM python:${PYTHON_VERSION}-slim

ARG ENTRYPOINT="fastapi run src/main.py"

WORKDIR /app

COPY requirements.txt ./
Expand All @@ -13,5 +11,3 @@ RUN pip install --no-cache-dir -r requirements.txt;
COPY . .

EXPOSE 8000

ENTRYPOINT ${ENTRYPOINT}
4 changes: 0 additions & 4 deletions deployment/requirements.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ ARG PYTHON_VERSION=3.12

FROM python:${PYTHON_VERSION}-slim

ARG ENTRYPOINT="fastapi run src/main.py"

WORKDIR /app

COPY pyproject.toml ./
Expand All @@ -13,5 +11,3 @@ RUN pip install --no-cache-dir .;
COPY . .

EXPOSE 8000

ENTRYPOINT ${ENTRYPOINT}

0 comments on commit 24fad7c

Please sign in to comment.