Using centurylink's golang-builder to create tiny docker image, going from ~400MB to 5.4MB.

pull/2/head
William McGann 10 years ago
parent 4d9d66e9f9
commit 22287e6a56

@ -1,8 +1,7 @@
FROM crosbymichael/golang
FROM scratch
COPY dockerui /
COPY dist /
COPY dockerui.go /app/
COPY dist/ /app/
WORKDIR /app/
RUN go build dockerui.go
EXPOSE 9000
ENTRYPOINT ["./dockerui"]
ENTRYPOINT ["/dockerui"]

@ -1,4 +1,4 @@
package main
package main // import "github.com/crosbymichael/dockerui"
import (
"flag"

Loading…
Cancel
Save