Skip to content

Commit 2d96b16

Browse files
Run wstcp proxy as non-root user
1 parent 069bccd commit 2d96b16

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tlsnotary/Dockerfile.proxy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ RUN cargo install wstcp
1616
# ── Runtime ──────────────────────────────────────────────────────────────────
1717
FROM alpine:3.20
1818

19-
RUN apk add --no-cache ca-certificates
19+
RUN apk add --no-cache ca-certificates \
20+
&& addgroup -S wstcp \
21+
&& adduser -S -G wstcp wstcp
2022

2123
COPY --from=builder /usr/local/cargo/bin/wstcp /usr/local/bin/wstcp
2224

25+
USER wstcp
26+
2327
EXPOSE 55688
2428

2529
# First arg after the image is the TCP target (e.g. notary:7047).

0 commit comments

Comments
 (0)