Create an Ubuntu Docker image - blitterated/docker-dev-env GitHub Wiki

Create a bash_profile for Docker image

cat << EOF > bash_profile
# load .bashrc by default
if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi
EOF

Create a bashrc for Docker image

cat << EOF > bashrc
export PAGER=less
EOF

Create a Dockerfile

See Setup man pages in a minimized Ubuntu container for the origin of provision.sh

cat <<"EOF" > Dockerfile
FROM ubuntu

MAINTAINER blitterated [email protected]

COPY bash_profile /root/.bash_profile
COPY bashrc /root/.bashrc
COPY provision.sh /root/provision.sh

RUN /root/provision.sh
EOF

Build the docker-dev-env image from Dockerfile

docker build -t dde .

Run the docker-dev-env image

docker run -it --rm --init dde /bin/bash
⚠️ **GitHub.com Fallback** ⚠️