28 lines
573 B
Docker
28 lines
573 B
Docker
FROM debian:12 AS builder
|
|
|
|
RUN true \
|
|
&& apt update \
|
|
&& apt install -y autoconf build-essential doxygen git \
|
|
&& true
|
|
|
|
RUN true \
|
|
&& git clone --depth 1 --branch 6.4.1 https://github.com/eventphone/yate.git \
|
|
&& true
|
|
|
|
RUN true \
|
|
&& cd yate \
|
|
&& ./autogen.sh \
|
|
&& ./configure --prefix=/opt/yate \
|
|
&& make \
|
|
&& make apidocs
|
|
|
|
RUN true \
|
|
&& cd yate \
|
|
&& make install
|
|
|
|
FROM debian:12
|
|
|
|
COPY --from=builder /opt/yate /opt/yate
|
|
RUN echo /opt/yate/lib >/etc/ld.so.conf.d/opt-yate.conf && ldconfig
|
|
|
|
CMD [ "/opt/yate/bin/yate", "-v" ]
|