From b81163b10055aba634793efaf48e71be9bd70646 Mon Sep 17 00:00:00 2001 From: "Ivana Yovcheva (VMware)" Date: Mon, 9 Jul 2018 17:52:27 +0300 Subject: [PATCH] Fix user group for Golang This fixes Go template to set app group properly. Fixes [#41](https://github.com/openfaas/templates/issues/41). Before used to add GEO data for user, after the change adds group to user Signed-off-by: Ivana Yovcheva (VMware) --- template/go/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/go/Dockerfile b/template/go/Dockerfile index decd4877..666570bb 100644 --- a/template/go/Dockerfile +++ b/template/go/Dockerfile @@ -20,7 +20,7 @@ FROM alpine:3.7 RUN apk --no-cache add ca-certificates # Add non root user -RUN addgroup -S app && adduser -S -g app app +RUN addgroup -S app && adduser app -S -G app RUN mkdir -p /home/app WORKDIR /home/app