This commit is contained in:
9
.drone.yml
Normal file
9
.drone.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: greeting
|
||||||
|
image: registry.buyusdt.xyz/ai-modelscope:latest
|
||||||
|
commands:
|
||||||
|
- uvicorn main:app --reload --host '0.0.0.0' --port 9741
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM 2271608011/ai-modelscope:v1.0
|
FROM registry.buyusdt.xyz/ai-modelscope:latest
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
COPY . /code
|
COPY . /code
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
ai:
|
ai:
|
||||||
image: 2271608011/ai-modelscope:v1.0
|
image: registry.buyusdt.xyz/ai-check-hand:v1.0
|
||||||
container_name: ai
|
container_name: ai-check-hand
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 9741:9741
|
- 9741:9741
|
||||||
volumes:
|
|
||||||
- .:/code
|
|
||||||
command: /bin/bash -c "cd /code && uvicorn main:app --proxy-headers --host '0.0.0.0' --port 9741"
|
|
||||||
Reference in New Issue
Block a user