2018-04-17 15:01:22 -07:00
|
|
|
FROM golang:1.10.1 as build
|
|
|
|
WORKDIR /go/src/mcquay.me/lim
|
|
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/lim .
|
|
|
|
|
2018-04-17 11:58:40 -07:00
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
2018-04-17 15:01:22 -07:00
|
|
|
COPY --from=build /usr/local/bin/lim /bin/
|
2018-04-17 11:58:40 -07:00
|
|
|
|
|
|
|
CMD ["/bin/sh", "-c", "cat /dev/urandom | /bin/lim 16b | xxd"]
|