forked from michelde/openv-vcontrold-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
27 lines (20 loc) · 865 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 alpine:latest
RUN apk update && apk add --no-cache libxml2-dev linux-headers git build-base gcc abuild binutils binutils-doc gcc-doc cmake cmake-doc extra-cmake-modules extra-cmake-modules-doc
ADD https://api.github.com/repos/Phil1pp/vcontrold/git/refs/heads/master version.json
RUN mkdir openv && \
cd openv && \
git clone https://github.com/Phil1pp/vcontrold.git && \
cd vcontrold && \
rm -rf build && \
cmake . -DMANPAGES=OFF -DCMAKE_BUILD_TYPE=Release -Bbuild && \
cmake --build build
FROM alpine:latest
WORKDIR /root/
COPY --from=0 /openv/vcontrold/build/vcontrold /usr/local/sbin/
COPY --from=0 /openv/vcontrold/build/vclient /usr/local/bin/
COPY --from=0 /usr/lib/libxml2.so* /usr/lib/
COPY --from=0 /usr/lib/liblzma.so* /usr/lib/
ADD config /etc/vcontrold/
ADD startup.sh /
EXPOSE 3002/udp
ENTRYPOINT ["sh","/startup.sh"]