-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile.multiarch
39 lines (30 loc) · 1.43 KB
/
Containerfile.multiarch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.23.3@sha256:c2d828fd49c47ed2b9192d2dbffed83052d8a21af465056d732c3de0d756f217 AS build
ARG TARGETOS
ARG TARGETARCH
ADD . /src
WORKDIR /src
RUN make build
FROM docker.io/python:3.13-alpine@sha256:fcbcbbecdeae71d3b77445d9144d1914df55110f825ab62b04a66c7c33c09373
LABEL maintainer="Robert Kaussow <[email protected]>"
LABEL org.opencontainers.image.authors="Robert Kaussow <[email protected]>"
LABEL org.opencontainers.image.title="wp-ansible"
LABEL org.opencontainers.image.url="https://github.com/thegeeklab/wp-ansible"
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/wp-ansible"
LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/wp-ansible"
ARG TARGETOS
ARG TARGETARCH
ARG ANSIBLE_VERSION
# renovate: datasource=pypi depName=ansible
ENV ANSIBLE_VERSION="${ANSIBLE_VERSION:-10.6.0}"
RUN apk --update add --virtual .build-deps python3-dev libffi-dev build-base && \
apk add --no-cache bash git curl rsync openssh-client sshpass && \
apk upgrade --no-cache libcrypto3 libssl3 && \
pip install -qq --no-cache-dir --upgrade pip && \
pip install -qq --no-cache-dir ansible=="${ANSIBLE_VERSION}" \
boto3 hcloud pywinrm passlib jsonschema && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
rm -rf /root/.cache/
COPY --from=build /src/dist/wp-ansible /bin/wp-ansible
ENTRYPOINT ["/bin/wp-ansible"]