docker部署vlmcsd
Dockerfile
FROM alpine:latest as builder
WORKDIR /root
RUN apk add --no-cache git make build-base && \
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git && \
cd vlmcsd/ && \
make
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
EXPOSE 1688/tcp
CMD [ "/usr/bin/vlmcsd", "-D", "-d" ]
docker-compose
image自行生成
version: "3.7"
services:
vlmcsd:
restart: always
container_name: vlmcsd
image: registry.cn-hangzhou.aliyuncs.com/hbgs/vlmcsd:v2
ports:
- "1688:1688"
healthcheck:
test: "netstat -ntpl | grep -q ':1688'"
interval: 60s
timeout: 15s
retries: 2
start_period: 10s
networks:
- net
networks:
net:
driver: bridge