-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
37 lines (30 loc) · 1.34 KB
/
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
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:latest
# AF dependecies
RUN apt-get update && apt-get install -y \
bison build-essential curl flex git default-jdk ninja-build wget \
python3-pip python3-venv python3-setuptools python3-wheel python3-yaml \
python3-aiofiles python3-build python3-h11 python3-h2 python3-httpx\
python3-openssl \
libsctp-dev libgnutls28-dev libgcrypt-dev libssl-dev libidn11-dev \
libmongoc-dev libbson-dev libyaml-dev libnghttp2-dev libmicrohttpd-dev \
libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev cmake
RUN apt-get update && apt-get install -y meson python3-venv python3-pip
# AF build & install
RUN git clone -b development --recurse-submodules https://github.com/5G-MAG/rt-5gms-application-function.git
WORKDIR /rt-5gms-application-function
RUN git submodule update
RUN meson setup --prefix=`pwd`/install build || (echo '===================== build/meson-logs/meson-log.txt ======================'; cat build/meson-logs/meson-log.txt) && ninja -C build
RUN rm -f install/etc/open5gs/msaf.yaml
RUN meson install -C build --no-rebuild
# UI server
RUN python3 -m venv /opt/venv
COPY . /ui
WORKDIR /ui
ENV PATH="/opt/venv/bin:$PATH"
RUN pip3 install --upgrade pip
RUN pip3 install -r management-ui/requirements.txt
RUN pip3 install ./python
EXPOSE 8000
COPY start.sh /start.sh
RUN chmod +x /start.sh
ENTRYPOINT ["/start.sh"]