residentsleeper/Dockerfile
Tyler 9f9ed9c61e
All checks were successful
continuous-integration/drone/push Build is passing
Add entrypoint, -dir parameter
2020-07-09 22:09:58 -04:00

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"