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 <admwiggin@gmail.com>
This commit is contained in:
Tianon Gravi 2015-03-02 10:33:26 -07:00
parent 89db94ecf9
commit c62230a879
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View file

@ -30,3 +30,4 @@ docs/VERSION
docs/GITCOMMIT
docs/changed-files
autogen/
.bashrc

View file

@ -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)