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

pull/2/head
William McGann 2015-02-13 01:11:50 -05:00
parent 4d9d66e9f9
commit 22287e6a56
2 changed files with 6 additions and 7 deletions

View File

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

View File

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