add docker deployment

pull/313/head
daihui 2023-07-15 11:23:17 +08:00
parent 536971b487
commit 85178e384a
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ version: "3"
services:
stable-diffusion:
build:
dockerfile: ./Dockerfile
dockerfile: ./dockerfile
context: .
runtime: nvidia
environment:
@ -10,7 +10,7 @@ services:
working_dir: /app
ports:
- "9000:8000"
command: bash -c "python web_demo2.py"
command: bash -c "python api.py"
deploy:
resources:
reservations: