mirror of https://github.com/THUDM/ChatGLM2-6B
add docker deployment
parent
536971b487
commit
85178e384a
|
@ -2,7 +2,7 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
stable-diffusion:
|
stable-diffusion:
|
||||||
build:
|
build:
|
||||||
dockerfile: ./Dockerfile
|
dockerfile: ./dockerfile
|
||||||
context: .
|
context: .
|
||||||
runtime: nvidia
|
runtime: nvidia
|
||||||
environment:
|
environment:
|
||||||
|
@ -10,7 +10,7 @@ services:
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
ports:
|
ports:
|
||||||
- "9000:8000"
|
- "9000:8000"
|
||||||
command: bash -c "python web_demo2.py"
|
command: bash -c "python api.py"
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
|
|
Loading…
Reference in New Issue