mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-23 04:12:13 +00:00
docker deployment
This commit is contained in:
parent
233ce08f3f
commit
02b706bd0b
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
python3 \
|
||||
pip
|
||||
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
EXPOSE 3306
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["python", "pilot/server/vicuna_server.py"]
|
||||
CMD ["python", "pilot/server/webserver.py"]
|
||||
|
||||
|
14
docker-compose.yml
Normal file
14
docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
db-gpt:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: db-gpt:latest
|
||||
container_name: db-gpt
|
||||
ports:
|
||||
- 8000:8000
|
||||
- 3306:3306
|
||||
restart: unless-stopped
|
||||
read-only: true
|
Loading…
Reference in New Issue
Block a user