rethinkdb / rethinkdb-dockerfiles

Dockerfiles for past and present versions of RethinkDB.
Apache License 2.0
55 stars 43 forks source link

Packaging from scratch #43

Open stuartpb opened 6 years ago

stuartpb commented 6 years ago

I'm thinking - if this is feasible, which I'm led to believe it is - the official images could use multi-stage builds to build the binary from source using Ubuntu, then package it in an image FROM scratch, which would be even more minimal than using whatever version is packaged with Alpine (#32),

yosifkit commented 6 years ago

Just so you have a reference to multi-stage build support in Official Images: https://github.com/docker-library/official-images/issues/3383.

daveisfera commented 6 years ago

Here's a Dockerfile that builds RethinkDB from scratch for Alpine and a Debian version would be pretty close as well: https://github.com/rethinkdb/rethinkdb-dockerfiles/issues/32#issuecomment-297428635