2024-07-03 11:37:13 +02:00
|
|
|
FROM golang:1.22.5-alpine AS build-stage
|
2021-12-15 00:21:52 +01:00
|
|
|
|
2023-07-04 16:38:22 +02:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download
|
|
|
|
|
|
|
|
COPY *.go ./
|
|
|
|
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /entrypoint
|
|
|
|
|
|
|
|
|
2024-06-10 12:10:10 +02:00
|
|
|
FROM python:3.12.4-alpine AS runtime-stage
|
2023-07-04 16:38:22 +02:00
|
|
|
|
2023-08-02 09:22:28 +02:00
|
|
|
RUN apk --no-cache add git openssh tar
|
2021-12-15 16:34:59 +01:00
|
|
|
|
2021-12-15 00:21:52 +01:00
|
|
|
# renovate: datasource=pypi depName=ansible
|
2024-06-20 12:24:31 +02:00
|
|
|
ENV ANSIBLE_VERSION=10.1.0
|
2024-03-29 16:55:53 +01:00
|
|
|
RUN pip3 install --no-cache-dir ansible==${ANSIBLE_VERSION} dnspython passlib netaddr requests uptime-kuma-api
|
2021-12-15 00:21:52 +01:00
|
|
|
|
2023-07-04 16:38:22 +02:00
|
|
|
COPY --from=build-stage /entrypoint /bin/entrypoint
|
2021-12-15 00:21:52 +01:00
|
|
|
|
2023-07-04 17:30:14 +02:00
|
|
|
ENV ANSIBLE_HOST_KEY_CHECKING=False
|
2023-07-04 18:01:16 +02:00
|
|
|
ENV PYTHONUNBUFFERED=1
|
2021-12-15 00:21:52 +01:00
|
|
|
ENTRYPOINT [ "/bin/entrypoint" ]
|