BAEL-5477 code for the Updating PATH variable in Dockerfile article

This commit is contained in:
thibault.faure 2022-09-20 15:03:33 +02:00
parent 2842e5cee7
commit add52ad932
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,5 @@
FROM ubuntu:latest
RUN echo $PATH
RUN echo "export PATH=$PATH:/etc/profile" >> ~/.bashrc
RUN cat ~/.bashrc
RUN echo $PATH

View File

@ -0,0 +1,4 @@
FROM ubuntu:latest
RUN echo $PATH
ENV PATH="$PATH:/etc/profile"
RUN echo $PATH

View File

@ -0,0 +1,4 @@
FROM ubuntu:latest
RUN echo $PATH
RUN export PATH="$PATH:/etc/profile"; echo $PATH
RUN echo $PATH