Skip to content

Commit a42a1cb

Browse files
Change username
1 parent 11c8f2b commit a42a1cb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Dockerfile

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
FROM alpine:3.11
1+
ARG USER=toruser
2+
ARG UID=1000
23

3-
ARG USER=tor
4+
FROM alpine:3.11
45

56
RUN apk add --no-cache tor
67

7-
RUN adduser -D -g '' tor
8-
9-
USER tor
10-
11-
RUN mkdir -p "/.tor/"
8+
RUN adduser \
9+
--disabled-password \
10+
--gecos "" \
11+
--uid "$UID" \
12+
"$USER"
1213

1314
VOLUME /etc/tor/
1415
VOLUME /var/lib/tor/

0 commit comments

Comments
 (0)