Browse Source

Add docker scripts

Wind4 1 year ago
parent
commit
868d58d0ce
3 changed files with 35 additions and 1 deletions
  1. 12 0
      Dockerfile
  2. 15 1
      README.md
  3. 8 0
      docker-compose.yml

+ 12 - 0
Dockerfile

@@ -0,0 +1,12 @@
+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" ]

+ 15 - 1
README.md

@@ -1 +1,15 @@
-# vlmcsd-docker
+# VLMCSD for Docker
+
+Deploy vlmcsd service on Docker container
+
+```bash
+git clone https://github.com/Wind4/vlmcsd-docker.git vlmcsd
+cd vlmcsd
+
+# Use docker-compose service
+docker-compose up -d
+
+# or docker build image
+docker build -t vlmcsd .
+docker run -idt -p 1688:1688 vlmcsd
+```

+ 8 - 0
docker-compose.yml

@@ -0,0 +1,8 @@
+version: "3.7"
+services:
+
+  vlmcsd:
+    build: .
+    ports:
+      - "1688:1688"
+    restart: always