Skip to content

Instantly share code, notes, and snippets.

View cu12's full-sized avatar
🏠
Working from home

Domonkos Czinke cu12

🏠
Working from home
View GitHub Profile
@sdenier
sdenier / Dockerfile
Created January 16, 2018 11:16
Parameterize a multi-stage Docker build output using ARG and ENV
# Build the $MODULE target (which produces a $MODULE binary)
FROM debian:latest as builder
ARG MODULE
COPY src/ .
RUN make ${MODULE}
# Build a minimal image containing the $MODULE binary
FROM alpine:latest as product