-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build the image from repo, rather than apt
- Loading branch information
1 parent
9d95a51
commit d2e3011
Showing
1 changed file
with
11 additions
and
5 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,4 +1,4 @@ | ||
FROM python:3.9-slim-bullseye | ||
FROM python:3.9-slim-buster | ||
LABEL maintainer="Razvan Crainea <[email protected]>" | ||
|
||
USER root | ||
|
@@ -7,12 +7,18 @@ USER root | |
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
#install basic components | ||
RUN apt-get -y update -qq && apt-get -y install gnupg2 ca-certificates | ||
RUN apt-get -y update -qq && \ | ||
apt-get -y install git default-libmysqlclient-dev gcc | ||
|
||
#add keyserver, repository | ||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 049AD65B | ||
RUN echo "deb https://apt.opensips.org bullseye cli-nightly" >/etc/apt/sources.list.d/opensips-cli.list \ | ||
&& apt-get -y update -qq && apt-get -y install opensips-cli | ||
RUN git clone https://github.com/OpenSIPS/opensips-cli.git /usr/src/opensips-cli && \ | ||
cd /usr/src/opensips-cli && \ | ||
python3 setup.py install clean --all && \ | ||
cd / && rm -rf /usr/src/opensips-cli | ||
|
||
RUN apt-get purge -y git gcc && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean | ||
|
||
ADD "run.sh" "/run.sh" | ||
|
||
|