dockron/Dockerfile

22 lines
506 B
Docker
Raw Permalink Normal View History

2019-06-07 22:40:04 +00:00
ARG REPO=library
2019-06-07 23:15:50 +00:00
# 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 .
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 23:15:50 +00:00
# COPY --from=builder /go/src/app/dockron .
ARG ARCH=amd64
2019-06-07 23:21:02 +00:00
COPY ./dockron-linux-${ARCH} ./dockron
2018-08-03 18:35:49 +00:00
2018-08-04 02:22:54 +00:00
CMD [ "./dockron" ]