woodpecker-ansible-runner/Dockerfile

24 lines
546 B
Docker
Raw Normal View History

2023-07-04 16:30:42 +02:00
FROM golang:1.20.5-alpine AS build-stage
2021-12-15 00:21:52 +01:00
2023-07-04 16:30:42 +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
FROM python:3.11.4-slim AS runtime-stage
# RUN apt-get update && apt-get install -y git toilet \
# && rm -rf /var/lib/apt/lists/*
2021-12-15 16:34:59 +01:00
2021-12-15 00:21:52 +01:00
# renovate: datasource=pypi depName=ansible
ENV ANSIBLE_VERSION=8.1.0
2023-05-29 19:18:36 +02:00
RUN pip3 install --no-cache-dir ansible==${ANSIBLE_VERSION} dnspython passlib netaddr
2021-12-15 00:21:52 +01:00
2023-07-04 16:30:42 +02:00
COPY --from=build-stage /entrypoint /bin/entrypoint
2021-12-15 00:21:52 +01:00
ENTRYPOINT [ "/bin/entrypoint" ]