-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Open5GS WebUI and dbctl images updated to use open5gs user (#278)
- Loading branch information
1 parent
ddc1920
commit df6f012
Showing
2 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
FROM mongo:latest | ||
|
||
ARG version | ||
ENV VERSION=$version | ||
ENV VERSION=$version \ | ||
USER=open5gs \ | ||
GROUP=open5gs | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
DEBIAN_FRONTEND=noninteractive \ | ||
apt-get install -y wget && \ | ||
apt-get clean | ||
|
||
RUN wget -O /usr/local/bin/open5gs-dbctl https://github.com/open5gs/open5gs/raw/main/misc/db/open5gs-dbctl && \ | ||
chmod +x /usr/local/bin/open5gs-dbctl | ||
|
||
RUN groupadd -r $GROUP && \ | ||
useradd --comment "open5gs" --shell /bin/bash -M -r -g $GROUP $USER | ||
RUN chown -R $GROUP:$USER /usr/local/bin/open5gs-dbctl | ||
USER open5gs | ||
|
||
ENTRYPOINT ["bin/bash", "-c"] | ||
|
||
CMD ["/usr/local/bin/open5gs-dbctl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters