yate in a container
This commit is contained in:
commit
fe6d795e16
5 changed files with 57 additions and 0 deletions
35
Containerfile
Normal file
35
Containerfile
Normal file
|
@ -0,0 +1,35 @@
|
|||
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" ]
|
Loading…
Add table
Add a link
Reference in a new issue