mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Update WebhookStash sample-function to run as non-root user
Signed-off-by: scott.eppler <scott.eppler@coda.global>
This commit is contained in:
parent
e4da7de692
commit
4ac782e5a4
@ -20,4 +20,7 @@ RUN chmod +x /usr/bin/fwatchdog
|
||||
COPY --from=builder /go/bin/WebhookStash /usr/bin/WebhookStash
|
||||
ENV fprocess "/usr/bin/WebhookStash"
|
||||
|
||||
RUN addgroup -g 1000 -S app && adduser -u 1000 -S app -G app
|
||||
USER 1000
|
||||
|
||||
CMD ["/usr/bin/fwatchdog"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user