From 9ce1fe310ffaee11465f09a6863f493991b84e08 Mon Sep 17 00:00:00 2001 From: Marcel Parciak Date: Mon, 20 Apr 2020 13:26:47 +0200 Subject: [PATCH] Changed to a non-root user. Signed-off-by: Marcel Parciak --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f868bf6..3d49892 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM golang:alpine -LABEL maintainer="marcel.parciak@mgmail.com" -ENV TOKEN "" +LABEL maintainer="marcel.parciak@gmail.com" WORKDIR /etc/postwoman-proxy @@ -10,4 +9,7 @@ RUN ./build.sh linux server EXPOSE 9159/tcp -CMD ["sh", "-c", "/etc/postwoman-proxy/out/linux-server/postwoman-proxy-server --host 0.0.0.0:9159 --token $TOKEN"] +# this should be a standard user with the users group on alpine +USER 1000:100 + +CMD ["sh", "-c", "/etc/postwoman-proxy/out/linux-server/postwoman-proxy-server --host 0.0.0.0:9159"]