A minimal docker image containing the essential files for static binaries to work with ssl & tzdata
3.4K
A base docker image like scratch which contains the essential files/directories from alpine:latest needed by statically built binaries (e.g. golang) that need to make https/tls connections or current timezone data.
/tmp is also created with modes 777 & +t so temporary files will also work.
In your multipart Dockerfile first compile your binaries then create the final image with
FROM area51/scratch-base
COPY --from=build /src/dir/ /dest/dir/
where:
For example: I build static golang images so in docker I'd use:
FROM golang:alpine AS build
RUN mkdir -p /dest/bin
... build steps here, writing the built binaries into /dest/bin
Then the final image would be:
FROM area51/scratch-base
COPY --from=build /dest/ /
The final image would then contain 2 layers, the first from this project and the second containing just your built binaries.
Content type
Image
Digest
Size
275.3 kB
Last updated
over 7 years ago
docker pull area51/scratch-base