Changed ADD to COPY for run.sh and added USER hdoop command in resourcemanager dir.

This commit is contained in:
K 2025-04-13 04:03:03 +05:30
parent 0005af864c
commit e75cb9e17e
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F

View File

@ -2,9 +2,11 @@ FROM cc/base:1.0
HEALTHCHECK CMD curl -f http://localhost:8088/ || exit 1 HEALTHCHECK CMD curl -f http://localhost:8088/ || 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 8088 EXPOSE 8088
USER hdoop
CMD ["/run.sh"] CMD ["/run.sh"]