Skip to content

Commit b3b3fc8

Browse files
authored
Merge pull request #66 from scaleapi/jason/fix-j2
Fix j2
2 parents 20874dc + 4f13faf commit b3b3fc8

File tree

21 files changed

+29
-62
lines changed

21 files changed

+29
-62
lines changed

examples/tutorials/00_sync/000_hello_acp/Dockerfile

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

36-
WORKDIR /app/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"]

examples/tutorials/00_sync/010_multiturn/Dockerfile

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

36-
WORKDIR /app/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"]

examples/tutorials/00_sync/020_streaming/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ RUN uv pip install --system -r requirements.txt
3232
# Copy the project code
3333
COPY 020_streaming/project /app/project
3434

35-
WORKDIR /app/project
36-
3735
# Set environment variables
3836
ENV PYTHONPATH=/app
3937

4038
# Run the agent using uvicorn
41-
CMD ["uvicorn", "acp:acp", "--host", "0.0.0.0", "--port", "8000"]
39+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/000_hello_acp/Dockerfile

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

36-
WORKDIR /app/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"]

examples/tutorials/10_agentic/00_base/010_multiturn/Dockerfile

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

36-
WORKDIR /app/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"]

examples/tutorials/10_agentic/00_base/020_streaming/Dockerfile

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

36-
WORKDIR /app/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"]

examples/tutorials/10_agentic/00_base/030_tracing/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ RUN uv pip install --system -r requirements.txt
3333
# Copy the project code
3434
COPY 030_tracing/project /app/project
3535

36-
WORKDIR /app/project
3736

3837
# Set environment variables
3938
ENV PYTHONPATH=/app
4039

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

examples/tutorials/10_agentic/00_base/040_other_sdks/Dockerfile

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

36-
WORKDIR /app/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"]

examples/tutorials/10_agentic/00_base/080_batch_events/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,18 @@ RUN uv pip install --system --upgrade pip setuptools wheel
2323
ENV UV_HTTP_TIMEOUT=1000
2424

2525
# Copy just the requirements file to optimize caching
26-
COPY 10_agentic/00_base/080_batch_events/requirements.txt /app/10_agentic/00_base/080_batch_events/requirements.txt
26+
COPY 080_batch_events/requirements.txt /app/requirements.txt
2727

28-
WORKDIR /app/10_agentic/00_base/080_batch_events
28+
WORKDIR /app/
2929

3030
# Install the required Python packages
3131
RUN uv pip install --system -r requirements.txt
3232

3333
# Copy the project code
34-
COPY 10_agentic/00_base/080_batch_events/project /app/10_agentic/00_base/080_batch_events/project
35-
36-
WORKDIR /app/10_agentic/00_base/080_batch_events/project
34+
COPY 080_batch_events/project /app/project
3735

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"]

examples/tutorials/10_agentic/10_temporal/000_hello_acp/Dockerfile

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

42-
WORKDIR /app/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"]

0 commit comments

Comments
 (0)