lim/Dockerfile

14 lines
307 B
Docker
Raw Normal View History

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 /
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"]