Update Dockerfile

show logs,change mirrors
This commit is contained in:
GiriNeko 2021-08-18 16:27:01 +08:00 committed by GitHub
parent 4195d04f68
commit 509c3b9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,8 @@
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 && \
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \
apk add --no-cache git make build-base && \
git clone --branch master --single-branch https://api.ineko.cc/gh/https://github.com/Wind4/vlmcsd.git && \
cd vlmcsd/ && \
make
@ -9,4 +10,4 @@ FROM alpine:latest
WORKDIR /root/
COPY --from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
EXPOSE 1688/tcp
CMD [ "/usr/bin/vlmcsd", "-D", "-d" ]
CMD [ "/usr/bin/vlmcsd", "-D", "-d","-e","-v"]