-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
37 lines (27 loc) · 904 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
28
29
30
31
32
33
34
35
36
37
# Copyright 2021-present Open Networking Foundation
# Copyright 2024-present Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
FROM golang:1.23.4-bookworm AS builder
RUN apt-get update && \
apt-get -y install --no-install-recommends \
vim \
ethtool && \
apt-get clean
WORKDIR $GOPATH/src/gnbsim
COPY . .
RUN make all
FROM alpine:3.21 AS gnbsim
LABEL maintainer="Aether SD-Core <dev@lists.aetherproject.org>" \
description="Aether open source 5G Core Network" \
version="Stage 3"
ARG DEBUG_TOOLS
RUN apk update && apk add --no-cache -U bash tcpdump
# Install debug tools ~ 50MB (if DEBUG_TOOLS is set to true)
RUN if [ "$DEBUG_TOOLS" = "true" ]; then \
apk update && apk add --no-cache -U gcompat vim strace net-tools curl netcat-openbsd bind-tools; \
fi
WORKDIR /gnbsim
# Copy executable
COPY --from=builder /go/src/gnbsim/bin /usr/local/bin/.