diff --git a/base/Dockerfile b/base/Dockerfile index 86ad384..358e0f4 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -6,7 +6,7 @@ FROM golang:1.21.8-bullseye AS builder LABEL maintainer="Free5GC " -ENV DEBIAN_FRONTEND noninteractive +ENV DEBIAN_FRONTEND=noninteractive # Install dependencies RUN apt-get update \ diff --git a/base/Dockerfile.nf b/base/Dockerfile.nf index 11ededf..d7d14b6 100644 --- a/base/Dockerfile.nf +++ b/base/Dockerfile.nf @@ -2,9 +2,9 @@ # Dockerfile responsible to compile specific NF from free5gc sources on the host # -FROM free5gc/base as my-base +FROM free5gc/base AS my-base -ENV DEBIAN_FRONTEND noninteractive +ENV DEBIAN_FRONTEND=noninteractive ARG F5GC_MODULE # Get Free5GC @@ -16,6 +16,8 @@ RUN cd $GOPATH/src/free5gc \ # Alpine is used for debug purpose. You can use scratch for a smaller footprint. FROM alpine:3.15 +ARG F5GC_MODULE + WORKDIR /free5gc RUN mkdir -p cert/ public diff --git a/base/Dockerfile.nf.webconsole b/base/Dockerfile.nf.webconsole index 2813a63..a45d4f6 100644 --- a/base/Dockerfile.nf.webconsole +++ b/base/Dockerfile.nf.webconsole @@ -2,9 +2,9 @@ # Dockerfile responsible to compile webconsole NF from sources on the host # -FROM free5gc/base as my-base +FROM free5gc/base AS my-base -ENV DEBIAN_FRONTEND noninteractive +ENV DEBIAN_FRONTEND=noninteractive # Get Free5GC COPY free5gc/ $GOPATH/src/free5gc/ diff --git a/n3iwue/Dockerfile b/n3iwue/Dockerfile index 574160d..87f1acb 100644 --- a/n3iwue/Dockerfile +++ b/n3iwue/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.21.10-bullseye AS builder LABEL maintainer="Free5GC " -ENV DEBIAN_FRONTEND noninteractive +ENV DEBIAN_FRONTEND=noninteractive # Install dependencies RUN apt-get update \ @@ -14,7 +14,7 @@ RUN apt-get update \ FROM bitnami/minideb:bullseye -ENV DEBIAN_FRONTEND noninteractive +ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install libsctp-dev lksctp-tools iproute2 iputils-ping procps psmisc tcpdump sudo -y \ diff --git a/nf_amf/Dockerfile b/nf_amf/Dockerfile index ff35eec..aaf5491 100644 --- a/nf_amf/Dockerfile +++ b/nf_amf/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE amf +ENV F5GC_MODULE=amf ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_ausf/Dockerfile b/nf_ausf/Dockerfile index 7f70935..50dc03e 100644 --- a/nf_ausf/Dockerfile +++ b/nf_ausf/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE ausf +ENV F5GC_MODULE=ausf ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_chf/Dockerfile b/nf_chf/Dockerfile index 122bb86..98bffde 100644 --- a/nf_chf/Dockerfile +++ b/nf_chf/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE chf +ENV F5GC_MODULE=chf ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_n3iwf/Dockerfile b/nf_n3iwf/Dockerfile index 8ee4461..f1aed36 100644 --- a/nf_n3iwf/Dockerfile +++ b/nf_n3iwf/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE n3iwf +ENV F5GC_MODULE=n3iwf ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_nef/Dockerfile b/nf_nef/Dockerfile index 3b38b77..23e08ec 100644 --- a/nf_nef/Dockerfile +++ b/nf_nef/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE nef +ENV F5GC_MODULE=nef ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_nrf/Dockerfile b/nf_nrf/Dockerfile index 3bc73f7..1541f3f 100644 --- a/nf_nrf/Dockerfile +++ b/nf_nrf/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE nrf +ENV F5GC_MODULE=nrf ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_nssf/Dockerfile b/nf_nssf/Dockerfile index 5f949ae..a021771 100644 --- a/nf_nssf/Dockerfile +++ b/nf_nssf/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE nssf +ENV F5GC_MODULE=nssf ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_pcf/Dockerfile b/nf_pcf/Dockerfile index c07de28..4f4251a 100644 --- a/nf_pcf/Dockerfile +++ b/nf_pcf/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE pcf +ENV F5GC_MODULE=pcf ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_smf/Dockerfile b/nf_smf/Dockerfile index 1607213..a6aafdb 100644 --- a/nf_smf/Dockerfile +++ b/nf_smf/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE smf +ENV F5GC_MODULE=smf ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_tngf/Dockerfile b/nf_tngf/Dockerfile index cf1ca8f..5d512e6 100644 --- a/nf_tngf/Dockerfile +++ b/nf_tngf/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE tngf +ENV F5GC_MODULE=tngf ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_udm/Dockerfile b/nf_udm/Dockerfile index 25687db..5419a81 100644 --- a/nf_udm/Dockerfile +++ b/nf_udm/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE udm +ENV F5GC_MODULE=udm ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_udr/Dockerfile b/nf_udr/Dockerfile index fcd019f..d1c8084 100644 --- a/nf_udr/Dockerfile +++ b/nf_udr/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.15 LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE udr +ENV F5GC_MODULE=udr ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/nf_upf/Dockerfile b/nf_upf/Dockerfile index 243e35b..ac265ed 100644 --- a/nf_upf/Dockerfile +++ b/nf_upf/Dockerfile @@ -1,4 +1,4 @@ -FROM free5gc/base as my-base +FROM free5gc/base AS my-base RUN git clone https://github.com/free5gc/go-gtp5gnl.git && mkdir "go-gtp5gnl/bin" && \ cd "go-gtp5gnl/cmd/gogtp5g-tunnel" && go build -o "${GOPATH}/gtp5g-tunnel" . && \ @@ -10,8 +10,8 @@ FROM bitnami/minideb:bullseye LABEL description="free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE upf -ENV DEBIAN_FRONTEND noninteractive +ENV F5GC_MODULE=upf +ENV DEBIAN_FRONTEND=noninteractive ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true) diff --git a/ueransim/Dockerfile b/ueransim/Dockerfile index 0ec731d..3b6ac90 100644 --- a/ueransim/Dockerfile +++ b/ueransim/Dockerfile @@ -2,7 +2,7 @@ FROM gcc:9.4.0 AS builder LABEL maintainer="Free5GC " -ENV DEBIAN_FRONTEND noninteractive +ENV DEBIAN_FRONTEND=noninteractive # Install dependencies RUN apt-get update \ @@ -16,7 +16,7 @@ RUN apt-get update \ FROM bitnami/minideb:bullseye -ENV DEBIAN_FRONTEND noninteractive +ENV DEBIAN_FRONTEND=noninteractive # Install runtime dependencies + ping RUN apt-get update \ diff --git a/webui/Dockerfile b/webui/Dockerfile index 7db7ca6..d921022 100644 --- a/webui/Dockerfile +++ b/webui/Dockerfile @@ -4,8 +4,8 @@ FROM bitnami/minideb:bullseye LABEL description="Free5GC open source 5G Core Network" \ version="Stage 3" -ENV F5GC_MODULE webui -ENV DEBIAN_FRONTEND noninteractive +ENV F5GC_MODULE=webui +ENV DEBIAN_FRONTEND=noninteractive ARG DEBUG_TOOLS # Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)