Changed to a non-root user.
Signed-off-by: Marcel Parciak <marcel.parciak@gmail.com>
This commit is contained in:
parent
9a5c98c6a6
commit
9ce1fe310f
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
FROM golang:alpine
|
FROM golang:alpine
|
||||||
|
|
||||||
LABEL maintainer="marcel.parciak@mgmail.com"
|
LABEL maintainer="marcel.parciak@gmail.com"
|
||||||
ENV TOKEN ""
|
|
||||||
|
|
||||||
WORKDIR /etc/postwoman-proxy
|
WORKDIR /etc/postwoman-proxy
|
||||||
|
|
||||||
|
@ -10,4 +9,7 @@ RUN ./build.sh linux server
|
||||||
|
|
||||||
EXPOSE 9159/tcp
|
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"]
|
||||||
|
|
Loading…
Reference in a new issue