Skip to content

Commit 6491736

Browse files
committed
Fix j2
1 parent 20874dc commit 6491736

File tree

7 files changed

+7
-18
lines changed

7 files changed

+7
-18
lines changed

src/agentex/lib/cli/templates/default/Dockerfile-uv.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ RUN uv pip install --system .
3333
# Copy the project code
3434
COPY {{ project_path_from_build_root }}/project /app/{{ project_path_from_build_root }}/project
3535

36-
WORKDIR /app/{{ project_path_from_build_root }}/project
37-
3836
# Set environment variables
3937
ENV PYTHONPATH=/app
4038

4139
# Run the agent using uvicorn
42-
CMD ["uvicorn", "acp:acp", "--host", "0.0.0.0", "--port", "8000"]
40+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

src/agentex/lib/cli/templates/default/Dockerfile.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ RUN uv pip install --system -r requirements.txt
3535
# Copy the project code
3636
COPY {{ project_path_from_build_root }}/project /app/{{ project_path_from_build_root }}/project
3737

38-
WORKDIR /app/{{ project_path_from_build_root }}/project
39-
4038
# Set environment variables
4139
ENV PYTHONPATH=/app
4240

4341
# Run the agent using uvicorn
44-
CMD ["uvicorn", "acp:acp", "--host", "0.0.0.0", "--port", "8000"]
42+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

src/agentex/lib/cli/templates/sync/Dockerfile-uv.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ RUN uv pip install --system .
3333
# Copy the project code
3434
COPY {{ project_path_from_build_root }}/project /app/{{ project_path_from_build_root }}/project
3535

36-
WORKDIR /app/{{ project_path_from_build_root }}/project
37-
3836
# Set environment variables
3937
ENV PYTHONPATH=/app
4038

4139
# Run the agent using uvicorn
42-
CMD ["uvicorn", "acp:acp", "--host", "0.0.0.0", "--port", "8000"]
40+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

src/agentex/lib/cli/templates/sync/Dockerfile.j2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ RUN uv pip install --system -r requirements.txt
3535
# Copy the project code
3636
COPY {{ project_path_from_build_root }}/project /app/{{ project_path_from_build_root }}/project
3737

38-
WORKDIR /app/{{ project_path_from_build_root }}/project
3938

4039
# Set environment variables
4140
ENV PYTHONPATH=/app
4241

4342
# Run the agent using uvicorn
44-
CMD ["uvicorn", "acp:acp", "--host", "0.0.0.0", "--port", "8000"]
43+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

src/agentex/lib/cli/templates/temporal/Dockerfile-uv.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ RUN uv pip install --system .
3939
# Copy the project code
4040
COPY {{ project_path_from_build_root }}/project /app/{{ project_path_from_build_root }}/project
4141

42-
WORKDIR /app/{{ project_path_from_build_root }}/project
43-
4442
# Run the ACP server using uvicorn
45-
CMD ["uvicorn", "acp:acp", "--host", "0.0.0.0", "--port", "8000"]
43+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
4644

4745
# When we deploy the worker, we will replace the CMD with the following
4846
# CMD ["python", "-m", "run_worker"]

src/agentex/lib/cli/templates/temporal/Dockerfile.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ RUN uv pip install --system -r requirements.txt
4141
# Copy the project code
4242
COPY {{ project_path_from_build_root }}/project /app/{{ project_path_from_build_root }}/project
4343

44-
WORKDIR /app/{{ project_path_from_build_root }}/project
45-
4644
# Run the ACP server using uvicorn
47-
CMD ["uvicorn", "acp:acp", "--host", "0.0.0.0", "--port", "8000"]
45+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
4846

4947
# When we deploy the worker, we will replace the CMD with the following
5048
# CMD ["python", "-m", "run_worker"]

src/agentex/lib/cli/templates/temporal/project/run_worker.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from agentex.lib.utils.logging import make_logger
66
from agentex.lib.utils.debug import setup_debug_if_enabled
77
from agentex.lib.environment_variables import EnvironmentVariables
88

9-
from workflow import {{ workflow_class }}
9+
from project.workflow import {{ workflow_class }}
1010

1111

1212
environment_variables = EnvironmentVariables.refresh()

0 commit comments

Comments
 (0)