open5gs/docker/ubuntu/bionic/dev/Dockerfile

35 lines
785 B
Docker
Raw Normal View History

2018-02-21 14:20:48 +00:00
ARG dist=ubuntu
2018-02-20 10:36:34 +00:00
ARG tag=latest
ARG username=acetcom
FROM ${username}/${dist}-${tag}-open5gs-base
2018-02-20 10:36:34 +00:00
MAINTAINER Sukchan Lee <acetcom@gmail.com>
2018-02-21 14:55:44 +00:00
RUN apt-get update && \
2018-02-20 10:36:34 +00:00
apt-get upgrade -y && \
2018-05-30 06:05:47 +00:00
DEBIAN_FRONTEND=noninteractive \
2018-02-20 10:36:34 +00:00
apt-get install -y --no-install-recommends \
2019-04-27 14:54:30 +00:00
git-buildpackage \
debhelper \
devscripts \
2019-04-27 14:54:30 +00:00
osc \
2018-02-22 01:47:21 +00:00
dput \
2018-02-21 15:48:42 +00:00
manpages-dev \
fakeroot \
2018-02-20 10:36:34 +00:00
cscope \
vim \
sudo \
iputils-ping \
2018-06-03 01:17:56 +00:00
wireshark \
2018-02-20 10:36:34 +00:00
net-tools && \
apt-get clean
2018-02-21 15:18:31 +00:00
COPY setup.sh /root
2018-02-20 10:36:34 +00:00
ARG username=acetcom
2018-02-21 14:55:44 +00:00
RUN useradd -m --uid=1000 ${username} && \
2018-02-20 10:36:34 +00:00
echo "${username} ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/${username} && \
chmod 0440 /etc/sudoers.d/${username}
WORKDIR /home/${username}