From 8df8b141e33ebd824ddbdf05898bc0300618c72e Mon Sep 17 00:00:00 2001 From: Denis Zheleztsov Date: Tue, 28 Feb 2017 15:52:45 +0300 Subject: [PATCH] Change user in docker --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1e7c83f..cd5264b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,12 @@ FROM alpine MAINTAINER Denis Zheleztsov -ADD out/zoorest /usr/bin/ +ADD out/zoorest /bin/ + +RUN echo -ne "zoorest\nzoorest\n" | adduser zoorest + +USER zoorest EXPOSE 8889 -ENTRYPOINT ["/usr/bin/zoorest"] +ENTRYPOINT ["/bin/zoorest"]