docker deployment

This commit is contained in:
thebigbone 2023-05-14 12:00:37 +05:30
parent 233ce08f3f
commit 02b706bd0b
2 changed files with 35 additions and 0 deletions

21
Dockerfile Normal file
View 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
View 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