FROM ruby:2.6.3-alpine3.8 as builder
# ... every thick piece of library you may need
# Yes, a second from statment in the same file
# Just copy everything from the image above using the `builder` variable and waa-la
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
COPY --from=builder /app/ /app/
COPY --from=builder /app/public /app/public
I used to see Alpine Linux as a smaller distro, but with the rise of containers I only see it as the future of “portable” operating systems.