-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
27 lines (19 loc) · 854 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM docker.io/library/debian:12 as builder
ARG VERSION=svn1113
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install \
build-essential ca-certificates clang && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/source
ADD https://github.com/Wind4/vlmcsd/archive/${VERSION}.tar.gz /tmp
RUN tar -xzf /tmp/${VERSION}.tar.gz --strip-components=1 && \
CC="clang" make vlmcsd -j$(nproc)
FROM gcr.io/distroless/base-nossl-debian12:nonroot
LABEL org.opencontainers.image.description="A rootless container running vlmcsd"
LABEL org.opencontainers.image.author="Zheng Junyi <[email protected]>"
LABEL org.opencontainers.image.licenses="MIT"
COPY --from=builder /opt/source/bin/vlmcsd /usr/bin/vlmcsd
COPY --from=builder /opt/source/etc /etc/vlmcsd
EXPOSE 1688/tcp
ENTRYPOINT [ "/usr/bin/vlmcsd" ]
CMD [ "-D", "-d", "-e" ]