3 ms·
It's not an alpine layer, it's a Dockerfile construct representing basically an empty tar file layer: <https://docs.docker.com/build/building/base-images/#creat
by mdaniel 2y ago
It's not an alpine layer, it's a Dockerfile construct representing basically an empty tar file layer: <https://docs.docker.com/build/building/base-images/#create-a-minimal-base-image-using-scratch https://docs.docker.com/build/building/base-images/#create-a...> and <https://github.com/moby/moby/pull/8827 https://github.com/moby/moby/pull/8827>
- m463 2y agoHe says: FROM scratch COPY ./hello /root/ ENTRYPOINT ["./hello"] > Here, our image contains 2 layers. The first layer comes from the base image, the alpine official docker image i.e. the root filesystem with all the standard shell tools that come along with an alpine distribution. But I thought "FROM scratch" was an empty container, while "FROM alpine" is a container with alpine libs/executables. otherwise using "FROM scratch" to populate for example an ubuntu image would pollute the container.