Skip to content

Instantly share code, notes, and snippets.

@alepez
Created July 13, 2019 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alepez/4b583ea2e0d146db45848b3bc04a8cd9 to your computer and use it in GitHub Desktop.
Save alepez/4b583ea2e0d146db45848b3bc04a8cd9 to your computer and use it in GitHub Desktop.
Docker base image from arago 2018.04 sysroot

Copy from arago sysroot those files:

./usr
./usr/lib
./usr/bin
./usr/bin/myhomeapp
./lib
./lib/libtinfo.so.5
./lib/libdl.so.2
./lib/libc.so.6
./lib/ld-linux-armhf.so.3
./bin
./bin/bash.bash
./bin/bash
./bin/sh

Build an image using this Dockerfile:

FROM scratch
COPY bin /bin
COPY usr /usr
COPY lib /lib

Build and try bash:

docker build . -t rpi-arago-2018.04
docker run -ti rpi-arago-2018.04 bash

Now you can use this minimal image for any program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment