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:
@@ -0,0 +1,5 @@
|
||||
FROM ubuntu:latest
|
||||
RUN echo $PATH
|
||||
RUN echo "export PATH=$PATH:/etc/profile" >> ~/.bashrc
|
||||
RUN cat ~/.bashrc
|
||||
RUN echo $PATH
|
||||
4
docker-modules/docker-images/update-path/Dockerfile-env
Normal file
4
docker-modules/docker-images/update-path/Dockerfile-env
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM ubuntu:latest
|
||||
RUN echo $PATH
|
||||
ENV PATH="$PATH:/etc/profile"
|
||||
RUN echo $PATH
|
||||
4
docker-modules/docker-images/update-path/Dockerfile-run
Normal file
4
docker-modules/docker-images/update-path/Dockerfile-run
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM ubuntu:latest
|
||||
RUN echo $PATH
|
||||
RUN export PATH="$PATH:/etc/profile"; echo $PATH
|
||||
RUN echo $PATH
|
||||
Reference in New Issue
Block a user