Skip to content

Commit 007f14d

Browse files
committed
fix: docker files releative paths
1 parent 312905c commit 007f14d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

agentserve/templates/Dockerfile.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ ENV PYTHONPATH=/app
99

1010
WORKDIR /app
1111

12-
COPY ../requirements.txt .
12+
COPY requirements.txt .
1313
RUN pip install --no-cache-dir -r requirements.txt
1414

15-
COPY ../ .
15+
COPY . .
1616
EXPOSE 5618
1717

1818
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5618"]

agentserve/templates/docker-compose.yml.tpl

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ services:
1010
restart: always
1111

1212
api_server:
13-
build: .
13+
build:
14+
context: ..
1415
command: uvicorn main:app --host 0.0.0.0 --port 5618
1516
environment:
1617
- REDIS_HOST=redis
@@ -23,7 +24,8 @@ services:
2324
restart: always
2425

2526
worker:
26-
build: .
27+
build:
28+
context: ..
2729
command: python -m agentserve.worker
2830
environment:
2931
- REDIS_HOST=redis

0 commit comments

Comments
 (0)