Changed to a non-root user.

Signed-off-by: Marcel Parciak <marcel.parciak@gmail.com>
This commit is contained in:
Marcel Parciak 2020-04-20 13:26:47 +02:00
parent 9a5c98c6a6
commit 9ce1fe310f

View file

@ -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"]