residentsleeper/Dockerfile

11 lines
158 B
Docker
Raw Normal View History

FROM golang:alpine AS builder
2020-07-10 01:07:46 +00:00
ADD . /go/src
2020-07-10 01:06:38 +00:00
2020-07-10 01:07:46 +00:00
RUN cd /go/src; go build -o sleeper
FROM alpine
2020-07-10 01:07:46 +00:00
COPY --from=builder /go/src/sleeper /sleeper
CMD ["/sleeper"]