Dockerfile doesn't source .bashrc even in a single subshell
I'm trying to source .bashrc but no luck USER user SHELL ["/bin/bash", "-c"] RUN echo "export TEST_VAR=test" >> /home/user/.bashrc && tail /home/user/.bashrc && source /home/user/.bashrc && echo "1 "${TEST_VAR} 2" var" && exit 1 I expect that this RUN command…