Skip to content

Commit

Permalink
Merge pull request #253 from ant-media/feature/add-auto-download
Browse files Browse the repository at this point in the history
Add auto download feature
  • Loading branch information
mekya authored Sep 16, 2023
2 parents a005175 + df403bd commit 8e63d15
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docker/Dockerfile_Process
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
FROM ubuntu:20.04

ARG AntMediaServer
ARG LicenseKey

ARG BranchName=master

Expand All @@ -18,10 +19,16 @@ RUN cd home \
&& wget https://raw.githubusercontent.com/ant-media/Scripts/${BranchName}/install_ant-media-server.sh \
&& chmod 755 install_ant-media-server.sh

RUN cd home \
RUN cd /home \
&& pwd \
&& ./install_ant-media-server.sh -i ${AntMediaServer} -s false

&& if [ -n "$AntMediaServer" ]; then \
./install_ant-media-server.sh -i ${AntMediaServer} -s false; \
elif [ -n "$LicenseKey" ]; then \
./install_ant-media-server.sh -l ${LicenseKey} -s false; \
else \
echo "Both AntMediaServer and LicenseKey arguments are not provided. Aborting the build process."; \
exit 1; \
fi

# Options
# -g: Use global(Public) IP in network communication. Its value can be true or false. Default value is false.
Expand Down

0 comments on commit 8e63d15

Please sign in to comment.