Skip to content

Commit

Permalink
Update Dockerfile-test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Apr 19, 2024
1 parent 52d9760 commit c3a4f4a
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tor/Dockerfile-test
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,26 @@ HEALTHCHECK NONE

ENTRYPOINT []

ARG USER_NAME=default
ARG USER_HOME=/home/default
ARG USER_ID=1000
ARG USER_GECOS=Default

# hadolint ignore=DL3018
RUN apk update \
&& apk add curl \
&& rm -rf /var/cache/apk/*

ARG USER=default

ENV HOME "/home/${USER}"
RUN adduser \
--home "${USER_HOME}" \
--uid "${USER_ID}" \
--gecos "${USER_GECOS}" \
--disabled-password \
"${USER_NAME}"

RUN adduser -D "${USER}"
ENV HOME "${USER_HOME}"

USER "${USER}"
USER "${USER_NAME}"

WORKDIR "${HOME}"

Expand Down

0 comments on commit c3a4f4a

Please sign in to comment.