forked from OpenSIPS/opensips
-
Notifications
You must be signed in to change notification settings - Fork 1
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
2 changed files
with
78 additions
and
0 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
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,29 @@ | ||
# syntax=docker/dockerfile:1.7-labs | ||
|
||
ARG BASE_IMAGE="sippylabs/rtpproxy:latest" | ||
FROM --platform=$TARGETPLATFORM $BASE_IMAGE AS build | ||
LABEL maintainer="Maksym Sobolyev <sobomax@sippysoft.com>" | ||
|
||
USER root | ||
|
||
# Set Environment Variables | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /tmp | ||
|
||
ARG COMPILER=clang-18 | ||
ARG BUILD_OS=ubuntu-latest | ||
RUN --mount=type=bind,source=scripts/build,target=scripts/build \ | ||
sh -x scripts/build/install_depends.sh | ||
|
||
COPY --exclude=.git --exclude=.github . . | ||
|
||
RUN pwd | ||
RUN ls -l | ||
|
||
ARG KEEP_MODULES="dialog sipmsgops sl tm rr maxfwd rtp.io rtpproxy textops" | ||
ARG SKIP_MODULES="usrloc event_routing clusterer rtp_relay" | ||
RUN mkdir tmp && cd modules mv ${KEEP_MODULES} ${SKIP_MODULES} ../tmp && \ | ||
rm -rf * && cd ../tmp && mv ${KEEP_MODULES} ${SKIP_MODULES} ../modules && \ | ||
cd .. && rmdir tmp | ||
RUN EXCLUDE_MODULES_ADD="${SKIP_MODULES}" sh -x scripts/build/do_build.sh |