1.base images
The base image with opkg management package.
FROM scratch
MAINTAINER Darebaet <fengwei2010@126.com>
# 设置时区
ENV TZ CST-8
ENV TERM xterm
# https://github.com/blang/busybox-bash-docker.git
ADD ./rootfs.tar /
ADD ./ipks /
# http://downloads.openwrt.org/snapshots/trunk/x86/64/packages/base
RUN opkg-cl install /opt/ipks/libgcc_5.2.0-1_x86_64.ipk && opkg-cl install /opt/ipks/libc_1.1.11-1_x86_64.ipk
CMD ["/bin/sh"]
docker build -t busybox:base .
2.bash images
The image build based on busybox:base,bash command utils is added.
FROM busybox:base
MAINTAINER Darebaet <fengwei2010@126.com>
RUN opkg-install bash
CMD ["/bin/bash"]
docker build -t busybox:bash .