open5gs/docker/alpine/latest/dev/Dockerfile
Md. Amdadul Bari Imad 7453b5be9a docker: replace deprecated MAINTAINER with OCI image label
Use org.opencontainers.image.authors label instead of deprecated
MAINTAINER instruction in all Dockerfiles.
2026-02-08 11:55:34 +09:00

20 lines
473 B
Docker

ARG dist=alpine
ARG tag=latest
ARG username=acetcom
FROM ${username}/${dist}-${tag}-open5gs-base
LABEL org.opencontainers.image.authors="Sukchan Lee <acetcom@gmail.com>"
COPY setup.sh /root
RUN apk update && \
apk add --no-cache \
vim \
sudo
ARG username=acetcom
RUN adduser -u 2000 acetcom -D && \
echo "${username} ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/${username} && \
chmod 0440 /etc/sudoers.d/${username}
WORKDIR /home/${username}