1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

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>
Upstream-commit: c62230a879e0461c43a4fc7d2e2e2efdd466fedd
Component: engine
This commit is contained in:
Tianon Gravi
2015-03-02 10:33:26 -07:00
parent 8ccc0c87e2
commit 0a09f8ffe0
2 changed files with 4 additions and 0 deletions

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)