ronmi/mingo

By ronmi

Updated about 23 hours ago

Minimal image for running Go binaries.

Image
Security
Operating systems
0

10K+

ronmi/mingo repository overview

Automatically build minimal image for running Go binaries, based on Debian stable.

Intro

FROM golang AS builder
RUN mkdir /src /app /app/data
WORKDIR /src
RUN --mount=type=bind,target=. go build -o /app/my-app

FROM ronmi/mingo
COPY --from=builder /app /app
WORKDIR /app
ENTRYPOINT ["/app/my-app"]

YOU CAN NOT RUN ANY COMMAND at final stage.

Pros
  • Really small (~2mb)
  • No executables in it, increases security
  • Debian based, one of the most stable distro on earth
Cons
  • Hard to extend (no apt/dpkg tools in it)
  • Hard to debug (no debugger/less/vim/... in it)
  • You can't even mkdir in it (lmao)

What's in it

  • libc6
  • ca-certificates
  • tzdata (use it with volumes like -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro)

That's all.

More info

Source.

You can customize this image by edit Dockerfile and build it by you own.

Tag summary

Content type

Image

Digest

sha256:36033bcbe

Size

2.4 MB

Last updated

about 23 hours ago

docker pull ronmi/mingo:testing