BAEL-5477 code for the Updating PATH variable in Dockerfile article
This commit is contained in:
parent
2842e5cee7
commit
add52ad932
@ -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
|
Loading…
x
Reference in New Issue
Block a user