16 lines
198 B
Docker
16 lines
198 B
Docker
FROM alpine:latest AS builder
|
|
|
|
RUN apk add go
|
|
|
|
WORKDIR /build
|
|
|
|
COPY ./ /build
|
|
|
|
RUN go build .
|
|
|
|
FROM alpine:latest
|
|
|
|
COPY --from=builder /build/scheduled_tasks /bin/runner
|
|
|
|
ENTRYPOINT ["/bin/runner"]
|