residentsleeper/Dockerfile

14 lines
246 B
Docker

FROM golang:alpine AS builder
ADD . /go/src
RUN cd /go/src; go build -o sleeper
FROM alpine
ADD docker/entrypoint.sh /entrypoint.sh
COPY --from=builder /go/src/sleeper /usr/bin/sleeper
RUN chmod +x /entrypoint.sh
ENTRYPOINT "/entrypoint.sh"