Change user in docker

This commit is contained in:
Denis Zheleztsov 2017-02-28 15:52:45 +03:00
parent 1a8ead7f68
commit 8df8b141e3

View File

@ -2,8 +2,12 @@ FROM alpine
MAINTAINER Denis Zheleztsov <difrex.punk@gmail.com> MAINTAINER Denis Zheleztsov <difrex.punk@gmail.com>
ADD out/zoorest /usr/bin/ ADD out/zoorest /bin/
RUN echo -ne "zoorest\nzoorest\n" | adduser zoorest
USER zoorest
EXPOSE 8889 EXPOSE 8889
ENTRYPOINT ["/usr/bin/zoorest"] ENTRYPOINT ["/bin/zoorest"]