1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Merge pull request #1753 from ArangoGutierrez/1752

Dockerfile: fix FromAs Casing
This commit is contained in:
Kubernetes Prow Robot 2024-07-02 03:55:58 -07:00 committed by GitHub
commit 30dcae8c67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@ ARG BASE_IMAGE_FULL
ARG BASE_IMAGE_MINIMAL
# Build node feature discovery
FROM ${BUILDER_IMAGE} as builder
FROM ${BUILDER_IMAGE} AS builder
# Get (cache) deps in a separate layer
COPY go.mod go.sum /go/node-feature-discovery/
@ -22,7 +22,7 @@ ARG HOSTMOUNT_PREFIX
RUN make install VERSION=$VERSION HOSTMOUNT_PREFIX=$HOSTMOUNT_PREFIX
# Create full variant of the production image
FROM ${BASE_IMAGE_FULL} as full
FROM ${BASE_IMAGE_FULL} AS full
# Run as unprivileged user
USER 65534:65534
@ -34,7 +34,7 @@ COPY --from=builder /go/node-feature-discovery/deployment/components/worker-conf
COPY --from=builder /go/bin/* /usr/bin/
# Create minimal variant of the production image
FROM ${BASE_IMAGE_MINIMAL} as minimal
FROM ${BASE_IMAGE_MINIMAL} AS minimal
# Run as unprivileged user
USER 65534:65534