Skip to content

Commit

Permalink
refac: changing useradd to adduser
Browse files Browse the repository at this point in the history
  • Loading branch information
wiltonsr committed Jun 18, 2024
1 parent a84ab95 commit abbf59f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
7 changes: 5 additions & 2 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ FROM gcc:11 as compile-stage
RUN apt update ; \
apt install cvs -y

RUN useradd farmhand && \
usermod -u 6969 farmhand
RUN adduser \
--system --disabled-login \
--uid 6969 --group \
--home /etc/opentracker \
farmhand

WORKDIR /usr/src

Expand Down
7 changes: 5 additions & 2 deletions blacklist.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ FROM gcc:11 as compile-stage
RUN apt update ; \
apt install cvs -y

RUN useradd farmhand && \
usermod -u 6969 farmhand
RUN adduser \
--system --disabled-login \
--uid 6969 --group \
--home /etc/opentracker \
farmhand

WORKDIR /usr/src

Expand Down
7 changes: 5 additions & 2 deletions open.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ FROM gcc:11 as compile-stage
RUN apt update ; \
apt install cvs -y

RUN useradd farmhand && \
usermod -u 6969 farmhand
RUN adduser \
--system --disabled-login \
--uid 6969 --group \
--home /etc/opentracker \
farmhand

WORKDIR /usr/src

Expand Down
7 changes: 5 additions & 2 deletions whitelist.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ FROM gcc:11 as compile-stage
RUN apt update ; \
apt install cvs -y

RUN useradd farmhand && \
usermod -u 6969 farmhand
RUN adduser \
--system --disabled-login \
--uid 6969 --group \
--home /etc/opentracker \
farmhand

WORKDIR /usr/src

Expand Down

0 comments on commit abbf59f

Please sign in to comment.