-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
ARG BASE_IMAGE | ||
FROM --platform=$TARGETPLATFORM $BASE_IMAGE as build | ||
FROM --platform=$TARGETPLATFORM $BASE_IMAGE AS build | ||
LABEL maintainer="Maksym Sobolyev <[email protected]>" | ||
|
||
USER root | ||
|
||
# Set Environment Variables | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Build & install everything | ||
ARG LIB_DEPS="libsrtp2-1 libbcg729-0 libgsm1 libsndfile1 libunwind8 libssl3" | ||
ARG BUILD_DEPS="file pkg-config clang-15 ccache git make \ | ||
libsrtp2-dev libbcg729-dev libgsm1-dev libsndfile1-dev \ | ||
libunwind-dev libssl-dev" | ||
|
||
WORKDIR /tmp | ||
COPY docker/install_depends.sh /tmp | ||
RUN ./install_depends.sh | ||
|
||
WORKDIR /rtpproxy | ||
COPY . /rtpproxy/ | ||
|
||
# Build & install everything | ||
RUN /rtpproxy/docker/build.sh | ||
RUN ls -l /usr/local/bin/rtpproxy* | ||
RUN ls -l /usr/local/bin/makeann* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -x | ||
|
||
MYPATH="`realpath "${0}"`" | ||
RTPDIR="`dirname "${MYPATH}"`/.." | ||
|
||
apt-get -y update -qq | ||
|
||
apt-get -y install ${LIB_DEPS} ${BUILD_DEPS} |