Changed ADD to COPY for run.sh and added USER hdoop command in nodemanager dir.
This commit is contained in:
parent
12e9bc1c60
commit
0005af864c
@ -2,9 +2,11 @@ FROM cc/base:1.0
|
|||||||
|
|
||||||
HEALTHCHECK CMD curl -f http://localhost:8042/ || exit 1
|
HEALTHCHECK CMD curl -f http://localhost:8042/ || exit 1
|
||||||
|
|
||||||
ADD run.sh /run.sh
|
COPY --chown=hdoop:hdoop run.sh /run.sh
|
||||||
RUN chmod a+x /run.sh
|
RUN chmod a+x /run.sh
|
||||||
|
|
||||||
EXPOSE 8042
|
EXPOSE 8042
|
||||||
|
|
||||||
|
USER hdoop
|
||||||
|
|
||||||
CMD ["/run.sh"]
|
CMD ["/run.sh"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user