Skip to content

Commit

Permalink
fix: docker files releative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
k11kirky committed Oct 24, 2024
1 parent 312905c commit 007f14d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions agentserve/templates/Dockerfile.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ ENV PYTHONPATH=/app

WORKDIR /app

COPY ../requirements.txt .
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY ../ .
COPY . .
EXPOSE 5618

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5618"]
6 changes: 4 additions & 2 deletions agentserve/templates/docker-compose.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ services:
restart: always

api_server:
build: .
build:
context: ..
command: uvicorn main:app --host 0.0.0.0 --port 5618
environment:
- REDIS_HOST=redis
Expand All @@ -23,7 +24,8 @@ services:
restart: always

worker:
build: .
build:
context: ..
command: python -m agentserve.worker
environment:
- REDIS_HOST=redis
Expand Down

0 comments on commit 007f14d

Please sign in to comment.