Jack Moore

Email: jack(at)jmoore53.com
Project Updates

Multi-Stage Image Builds

07 Aug 2019 » containers, docker, commandcenter
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
FROM ruby:2.6.3-alpine3.8

# 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

Alpine Linux

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.

© Jack Moore