yate-container/Containerfile
2024-09-02 01:19:57 +02:00

35 lines
No EOL
785 B
Docker

FROM ubuntu:24.04 as build_yate
RUN apt-get update && apt-get install -y \
git \
build-essential \
zlib1g-dev \
libssl-dev \
libgsm1-dev \
pkg-config \
speex \
autoconf \
libasound2-dev
#install libasound2-dev so './configure' will enable the alsachan module for us
RUN git clone https://github.com/eventphone/yate.git yate
WORKDIR /yate
RUN ./autogen.sh
RUN ./configure
RUN make
RUN make install-noapi
FROM ubuntu:24.04
COPY --from=build_yate /usr/local/lib /usr/local/lib
COPY --from=build_yate /usr/local/bin /usr/local/bin
COPY --from=build_yate /usr/local/etc /usr/local/etc
COPY --from=build_yate /usr/local/include /usr/local/include
ENV LD_LIBRARY_PATH=/usr/local/lib
COPY startup.sh .
RUN chmod +x startup.sh
CMD [ "./startup.sh" ]