Skip to content

Commit

Permalink
Fix minor warnings in Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kispaljr committed Aug 22, 2024
1 parent a358f84 commit 3d2a1eb
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.


FROM golang:1.22.2-bookworm as builder
FROM golang:1.22.2-bookworm AS builder

WORKDIR /go/src

Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile.apiserver
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.22.2-bookworm as builder
FROM golang:1.22.2-bookworm AS builder

WORKDIR /workspace/src
RUN git clone https://github.com/kubernetes/kubernetes --branch v1.30.1 --depth=1
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile.etcd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.22.2-bookworm as builder
FROM golang:1.22.2-bookworm AS builder

WORKDIR /workspace
ARG ETCD_VER=v3.5.1
Expand Down
2 changes: 1 addition & 1 deletion controllers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.22.2-bookworm as builder
FROM golang:1.22.2-bookworm AS builder

WORKDIR /go/src

Expand Down
2 changes: 1 addition & 1 deletion examples/apps/hello-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.22.2-bookworm as builder
FROM golang:1.22.2-bookworm AS builder

WORKDIR /src
COPY go.mod go.sum ./
Expand Down
26 changes: 13 additions & 13 deletions func/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM gcr.io/kpt-fn/apply-setters:v0.2.0 as apply-setters
FROM gcr.io/kpt-fn/apply-setters:v0.1.1 as apply-setters-v1
FROM gcr.io/kpt-fn/ensure-name-substring:v0.1.1 as ensure-name-substring
FROM gcr.io/kpt-fn/search-replace:v0.2.0 as search-replace
FROM gcr.io/kpt-fn/set-annotations:v0.1.4 as set-annotations
FROM gcr.io/kpt-fn/set-image:v0.1.0 as set-image
FROM gcr.io/kpt-fn/set-labels:v0.1.5 as set-labels
FROM gcr.io/kpt-fn/set-namespace:v0.2.0 as set-namespace
FROM gcr.io/kpt-fn/set-namespace:v0.3.4 as set-namespace-v3
FROM gcr.io/kpt-fn/set-project-id:v0.2.0 as set-project-id
FROM gcr.io/kpt-fn/starlark:v0.3.0 as starlark
FROM gcr.io/kpt-fn/upsert-resource:v0.2.0 as upsert-resource
FROM gcr.io/kpt-fn/apply-setters:v0.2.0 AS apply-setters
FROM gcr.io/kpt-fn/apply-setters:v0.1.1 AS apply-setters-v1
FROM gcr.io/kpt-fn/ensure-name-substring:v0.1.1 AS ensure-name-substring
FROM gcr.io/kpt-fn/search-replace:v0.2.0 AS search-replace
FROM gcr.io/kpt-fn/set-annotations:v0.1.4 AS set-annotations
FROM gcr.io/kpt-fn/set-image:v0.1.0 AS set-image
FROM gcr.io/kpt-fn/set-labels:v0.1.5 AS set-labels
FROM gcr.io/kpt-fn/set-namespace:v0.2.0 AS set-namespace
FROM gcr.io/kpt-fn/set-namespace:v0.3.4 AS set-namespace-v3
FROM gcr.io/kpt-fn/set-project-id:v0.2.0 AS set-project-id
FROM gcr.io/kpt-fn/starlark:v0.3.0 AS starlark
FROM gcr.io/kpt-fn/upsert-resource:v0.2.0 AS upsert-resource

FROM golang:1.22.1-alpine3.18 as builder
FROM golang:1.22.1-alpine3.18 AS builder
WORKDIR /go/src

RUN go install github.com/grpc-ecosystem/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion func/Dockerfile-wrapperserver
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.1-alpine3.18 as builder
FROM golang:1.22.1-alpine3.18 AS builder

WORKDIR /go/src

Expand Down
2 changes: 1 addition & 1 deletion test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.


FROM golang:1.22.2-bookworm as builder
FROM golang:1.22.2-bookworm AS builder

WORKDIR /go/src

Expand Down

0 comments on commit 3d2a1eb

Please sign in to comment.