From c62230a879e0461c43a4fc7d2e2e2efdd466fedd Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 2 Mar 2015 10:33:26 -0700 Subject: [PATCH] Add support for an optional ".bashrc" file If `.bashrc` exists at the root of the source tree, it will be used as the `~/.bashrc` inside the container. Signed-off-by: Andrew "Tianon" Page --- .gitignore | 1 + Dockerfile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 69ad05694c..9696b9a30e 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ docs/VERSION docs/GITCOMMIT docs/changed-files autogen/ +.bashrc diff --git a/Dockerfile b/Dockerfile index 84c4eabbb4..c3d1c246bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -142,6 +142,9 @@ VOLUME /var/lib/docker WORKDIR /go/src/github.com/docker/docker ENV DOCKER_BUILDTAGS apparmor selinux btrfs_noversion +# Let us use a .bashrc file +RUN ln -sfv $PWD/.bashrc ~/.bashrc + # Install man page generator COPY vendor /go/src/github.com/docker/docker/vendor # (copy vendor/ because go-md2man needs golang.org/x/net)