25 lines
553 B
Docker
25 lines
553 B
Docker
FROM golang:1.21.7-alpine AS build-stage
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY *.go ./
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /entrypoint
|
|
|
|
|
|
FROM python:3.12.1-alpine AS runtime-stage
|
|
|
|
RUN apk --no-cache add git openssh tar
|
|
|
|
# renovate: datasource=pypi depName=ansible
|
|
ENV ANSIBLE_VERSION=9.2.0
|
|
RUN pip3 install --no-cache-dir ansible==${ANSIBLE_VERSION} dnspython passlib netaddr
|
|
|
|
COPY --from=build-stage /entrypoint /bin/entrypoint
|
|
|
|
ENV ANSIBLE_HOST_KEY_CHECKING=False
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENTRYPOINT [ "/bin/entrypoint" ] |