Skip to content

Commit 41ca76c

Browse files
committed
Updated the ntfy user uuid to 10,000+ to follow best practices.
1 parent 81243a5 commit 41ca76c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LABEL org.opencontainers.image.title="ntfy"
1010
LABEL org.opencontainers.image.description="Send push notifications to your phone or desktop using PUT/POST"
1111

1212
RUN apk add --no-cache tzdata \
13-
&& /usr/sbin/adduser -D -u 1000 ntfy
13+
&& /usr/sbin/adduser -D -u 10001 ntfy
1414
COPY ntfy /usr/bin
1515

1616
EXPOSE 80/tcp

Dockerfile-arm

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ LABEL org.opencontainers.image.description="Send push notifications to your phon
1212
# Alpine does not support adding "tzdata" on ARM anymore, see
1313
# https://github.com/binwiederhier/ntfy/issues/894
1414

15-
RUN /usr/sbin/adduser -D -u 1000 ntfy
15+
RUN /usr/sbin/adduser -D -u 10001 ntfy
16+
1617
COPY ntfy /usr/bin
1718

1819
EXPOSE 80/tcp

Dockerfile-build

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ LABEL org.opencontainers.image.licenses="Apache-2.0, GPL-2.0"
5353
LABEL org.opencontainers.image.title="ntfy"
5454
LABEL org.opencontainers.image.description="Send push notifications to your phone or desktop using PUT/POST"
5555

56-
RUN /usr/sbin/adduser -D -u 1000 ntfy
56+
RUN /usr/sbin/adduser -D -u 10001 ntfy
5757

5858
COPY --from=builder /app/dist/ntfy_linux_server/ntfy /usr/bin/ntfy
5959

0 commit comments

Comments
 (0)