Change user in docker
This commit is contained in:
parent
1a8ead7f68
commit
8df8b141e3
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user