Merge pull request #12743 from thibaultfaure/article/BAEL-5477-updating-path-variable-in-dockerfile

BAEL-5477 code for the Updating PATH variable in Dockerfile article
This commit is contained in:
davidmartinezbarua 2022-09-22 22:24:15 -03:00 committed by GitHub
commit 2e0c5f4b59
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