Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jul 24, 2024
1 parent 1d4baf9 commit d8b56e8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
19 changes: 15 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
# syntax=docker/dockerfile:1.7-labs

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

COPY --exclude=.git* --link . /rtpproxy/
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*
Expand Down
10 changes: 0 additions & 10 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ set -x
MYPATH="`realpath "${0}"`"
RTPDIR="`dirname "${MYPATH}"`/.."

LIB_DEPS="libsrtp2-1 libbcg729-0 libgsm1 libsndfile1 libunwind8 libssl3"

BUILD_DEPS="file pkg-config clang-15 ccache git make \
libsrtp2-dev libbcg729-dev libgsm1-dev libsndfile1-dev \
libunwind-dev libssl-dev"

apt-get -y update -qq

apt-get -y install ${LIB_DEPS} ${BUILD_DEPS}

CONFIGURE_ARGS="--enable-librtpproxy"
ARCH="`dpkg --print-architecture`"

Expand Down
11 changes: 11 additions & 0 deletions docker/install_depends.sh
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}

0 comments on commit d8b56e8

Please sign in to comment.