Last active
February 4, 2019 10:36
-
-
Save sreichholf/0c98fff26a5550aad241942eb09dc7da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build the container | |
docker build -t oe.krogoth - < Dockerfile.krogoth | |
# enter bash in the container | |
docker run -h krogoth -v /oe:/oe -v /home:/home -u oe -it oe.krogoth | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:xenial | |
VOLUME /oe | |
VOLUME /home | |
RUN apt-get update && apt-get install -y \ | |
python \ | |
dbus \ | |
unattended-upgrades \ | |
net-tools \ | |
iputils-ping \ | |
bash-completion \ | |
command-not-found \ | |
dialog \ | |
less \ | |
locales \ | |
lsof \ | |
man-db \ | |
mc \ | |
openssh-server \ | |
vim \ | |
bzip2 \ | |
ca-certificates \ | |
chrpath \ | |
cpio \ | |
diffstat \ | |
file \ | |
g++ \ | |
gawk \ | |
gcc \ | |
git \ | |
make \ | |
patch \ | |
texinfo \ | |
wget | |
RUN echo "krogoth" > /etc/hostname | |
RUN ln -sf /bin/bash /bin/sh | |
RUN useradd -ms /bin/bash oe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment