This repository has been archived by the owner on Feb 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run inside container as unprivileged user
- Loading branch information
1 parent
773c5e3
commit 55c3d60
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
FROM alpine:3.14.2 | ||
|
||
RUN apk update && apk add --no-cache ca-certificates | ||
RUN apk update && \ | ||
apk add --no-cache ca-certificates && \ | ||
addgroup -S ddns && \ | ||
adduser -S -G ddns ddns | ||
|
||
FROM scratch | ||
|
||
COPY --from=0 /etc/ssl/certs /etc/ssl/certs | ||
COPY --from=0 /etc/passwd /etc/passwd | ||
|
||
ADD ddns /ddns | ||
|
||
USER ddns | ||
ENTRYPOINT ["/ddns"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters