2019-06-07 22:40:04 +00:00
|
|
|
ARG REPO=library
|
|
|
|
# FROM golang:1.11-alpine AS builder
|
|
|
|
#
|
|
|
|
# RUN apk add --no-cache git
|
|
|
|
# RUN go get -u github.com/golang/dep/cmd/dep
|
|
|
|
#
|
|
|
|
# WORKDIR /go/src/app/
|
|
|
|
# COPY ./Gopkg.* /go/src/app/
|
|
|
|
# RUN dep ensure --vendor-only
|
|
|
|
#
|
|
|
|
# COPY ./main.go /go/src/app/
|
|
|
|
#
|
|
|
|
# RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -a -installsuffix nocgo -o dockron .
|
2018-08-03 18:35:49 +00:00
|
|
|
|
2019-06-07 22:40:04 +00:00
|
|
|
FROM ${REPO}/busybox:latest
|
2018-08-03 18:35:49 +00:00
|
|
|
WORKDIR /root/
|
2019-06-07 22:40:04 +00:00
|
|
|
# COPY --from=builder /go/src/app/dockron .
|
|
|
|
ARG ARCH=amd64
|
|
|
|
COPY ./dockron-linux-${ARCH} ./dockron
|
2018-08-03 18:35:49 +00:00
|
|
|
|
2018-08-04 02:22:54 +00:00
|
|
|
CMD [ "./dockron" ]
|