forked from adfinis/openbao-plugin-secrets-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.oci-plugin
More file actions
32 lines (26 loc) · 1006 Bytes
/
Copy pathDockerfile.oci-plugin
File metadata and controls
32 lines (26 loc) · 1006 Bytes
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
ARG DIST_DIR=dist/release
ARG BINARY_NAME=openbao-plugin-secrets-sync
ARG VERSION=0.0.0-dev
ARG TARGETOS
ARG TARGETARCH
FROM scratch
ARG DIST_DIR
ARG BINARY_NAME
ARG VERSION
ARG PLUGIN_VERSION=v0.0.0-dev
ARG COMMIT=unknown
ARG BUILD_DATE=unknown
ARG SOURCE_URL=https://github.com/adfinis/openbao-plugin-secrets-sync
ARG TARGETOS
ARG TARGETARCH
LABEL org.opencontainers.image.title="OpenBao Secret Sync Plugin"
LABEL org.opencontainers.image.description="OCI distribution image for the OpenBao secret sync plugin binary"
LABEL org.opencontainers.image.source="${SOURCE_URL}"
LABEL org.opencontainers.image.revision="${COMMIT}"
LABEL org.opencontainers.image.created="${BUILD_DATE}"
LABEL org.opencontainers.image.version="${PLUGIN_VERSION}"
LABEL org.opencontainers.image.vendor="Adfinis"
LABEL org.opencontainers.image.licenses="Apache-2.0"
COPY ${DIST_DIR}/${BINARY_NAME}_${VERSION}_${TARGETOS}_${TARGETARCH} /openbao-plugin-secrets-sync
USER 65532:65532
ENTRYPOINT ["/openbao-plugin-secrets-sync"]