This repository has been archived on 2023-04-18. You can view files and clone it, but cannot push or open issues or pull requests.
notificationarr/Dockerfile
renovate 1b902cd1e3
All checks were successful
continuous-integration/drone/push Build is passing
chore(deps): update dependency golang (#13)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang | docker | minor | `1.18` -> `1.19` |
| golang | stage | minor | `1.18.5-alpine3.16` -> `1.19.0-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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMzQuMCIsInVwZGF0ZWRJblZlciI6IjMyLjEzNC4wIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #13
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2022-08-04 04:03:58 +00:00

24 lines
530 B
Docker

FROM golang:1.19.0-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"]