renovate
c06ff141f4
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | golang | stage | patch | `1.20.0-alpine3.16` -> `1.20.1-alpine3.16` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTQuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNC4xIn0=--> Co-authored-by: Renovate <renovate@dwysokinski.me> Reviewed-on: #34 Co-authored-by: renovate <renovate@noreply.localhost> Co-committed-by: renovate <renovate@noreply.localhost>
24 lines
530 B
Docker
24 lines
530 B
Docker
FROM golang:1.20.1-alpine3.16 as builder
|
|
|
|
WORKDIR /notificationarr
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build -trimpath -o notificationarr .
|
|
|
|
######## Start a new stage from scratch #######
|
|
FROM alpine:3.16
|
|
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
COPY --from=builder /notificationarr/notificationarr /usr/bin/
|
|
|
|
EXPOSE 9234/tcp
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
|
|
CMD wget --no-verbose --tries=1 --spider http://localhost:9234/health || exit 1
|
|
|
|
CMD ["notificationarr"]
|