forked from intermedia-net/pjproject-android-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (18 loc) · 800 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM --platform=linux/amd64 ubuntu:22.04
# Set the path to the repo root folder
# I set /home because I'm working within a Docker container
ARG BASEDIR=/home
# The name of the folder generated when untarring PJSIP sources file
# In general, the name corresponds to that of the tar, except the file extension
ARG PJSIP_DIR_NAME="pjproject"
# TOOLS AND LIBRARIES DOWNLOAD DIRECTORY
ENV DOWNLOAD_DIR="$BASEDIR/tools"
ENV PJSIP_BASE_PATH="${DOWNLOAD_DIR}/${PJSIP_DIR_NAME}"
# BUILD DIRECTORY WHERE ALL THE BUILD ARTIFACTS WILL BE
ENV BUILD_DIR="$BASEDIR/output"
# The output directory where to store PJSIP compiled libraries
ENV PJSIP_BUILD_OUT_PATH="$BUILD_DIR/pjsip-build-output"
WORKDIR $BASEDIR
COPY . $BASEDIR
RUN ./prepare-build-system
VOLUME ["$PJSIP_BUILD_OUT_PATH", "$PJSIP_BASE_PATH"]