Checking files in Docker build context

Sometimes we need to check files in Docker build context, or just to check .dockerignore is work or not

Build this Dockerfile

FROM busybox

RUN mkdir /tmp/build/
COPY . /tmp/build/
RUN du -ah tmp/build | sort -n -r | head -n 100
docker build .

Last updated