Skip to content

Commit

Permalink
Merge pull request #301 from damacus/base-image
Browse files Browse the repository at this point in the history
Update container version
  • Loading branch information
k8s-ci-robot committed Oct 25, 2023
2 parents 3740e01 + ed64e85 commit 814e0d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,4 +1,4 @@
# Copyright 2017-2020 The Kubernetes Authors.
# Copyright 2023 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.multiarch
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM golang:1.18 as build-env
FROM --platform=$BUILDPLATFORM golang:1.19 as build-env

# xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM
# based on TARGETPLATFORM provided by Docker.
Expand All @@ -13,7 +13,7 @@ WORKDIR ${APP_FOLDER}
ARG TARGETPLATFORM
RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o /bin/main ./cmd/nfs-subdir-external-provisioner

FROM --platform=$TARGETPLATFORM alpine:3.12
FROM --platform=$TARGETPLATFORM alpine:3.18

RUN apk update --no-cache && apk add ca-certificates
COPY --from=build-env /bin/main /app/main
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/kubernetes-sigs/nfs-subdir-external-provisioner

go 1.17
go 1.19

require (
github.com/golang/glog v1.0.0
Expand Down

0 comments on commit 814e0d8

Please sign in to comment.