diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..de1c90cbd --- /dev/null +++ b/Dockerfile @@ -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"] + + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..fbf05f4c9 --- /dev/null +++ b/docker-compose.yml @@ -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