Update WebhookStash sample-function to run as non-root user

Signed-off-by: scott.eppler <scott.eppler@coda.global>
This commit is contained in:
scott.eppler 2019-10-08 14:19:30 -05:00 committed by Alex Ellis
parent e4da7de692
commit 4ac782e5a4

View File

@ -20,4 +20,7 @@ RUN chmod +x /usr/bin/fwatchdog
COPY --from=builder /go/bin/WebhookStash /usr/bin/WebhookStash COPY --from=builder /go/bin/WebhookStash /usr/bin/WebhookStash
ENV fprocess "/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"] CMD ["/usr/bin/fwatchdog"]