Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit adbe3d1

Browse files
committedAug 2, 2024
Set the user/group to well known id
1 parent d0510e6 commit adbe3d1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
 

‎docker/domserver/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ LABEL org.opencontainers.image.authors="DOMjudge team <team@domjudge.org>"
44
ENV DEBIAN_FRONTEND=noninteractive
55

66
# Set up user
7-
RUN useradd -m domjudge
7+
RUN groupadd domjudge -g2004
8+
RUN useradd -m domjudge -u2004 -g2004
89

910
# Install required packages for build of domserver
1011
RUN apt-get update \

‎docker/judgehost/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ ENV DEBIAN_FRONTEND=noninteractive \
1111
RUN_USER_UID_GID=62860
1212

1313
# Set up user
14-
RUN useradd -m domjudge
14+
RUN groupadd domjudge -g2004
15+
RUN useradd -m domjudge -u2004 -g2004
1516

1617
# Install required packages for running of judgehost
1718
RUN apt-get update \

‎docker/judgehost/Dockerfile.build

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ LABEL org.opencontainers.image.authors="DOMjudge team <team@domjudge.org>"
44
ENV DEBIAN_FRONTEND=noninteractive
55

66
# Set up user
7-
RUN useradd -m domjudge
7+
RUN groupadd domjudge -g2004
8+
RUN useradd -m domjudge -u2004 -g2004
89

910
# Install required packages for build of judgehost
1011
RUN apt-get update \

0 commit comments

Comments
 (0)
Please sign in to comment.