# escape=` FROM centos:latest AS builder WORKDIR /root COPY setup-root.sh . RUN ["/bin/sh", "./setup-root.sh"] USER bmad:bmad WORKDIR /home/bmad COPY --chown=bmad:bmad build-bmad.sh . RUN sh ./build-bmad.sh RUN rm ./build-bmad.sh FROM centos:latest RUN dnf -y check-update ; dnf -y upgrade && dnf -y install libgfortran xorg-x11-xauth emacs gedit RUN adduser -m -U bmad USER bmad:bmad WORKDIR /home/bmad COPY --from=builder /home/bmad/ . COPY bashrc .bashrc CMD ["/bin/bash","-l"]