11 lines
158 B
Docker
11 lines
158 B
Docker
FROM golang:alpine AS builder
|
|
|
|
ADD . /go/src
|
|
|
|
RUN cd /go/src; go build -o sleeper
|
|
|
|
FROM alpine
|
|
|
|
COPY --from=builder /go/src/sleeper /sleeper
|
|
|
|
CMD ["/sleeper"] |