Skip to content

Commit

Permalink
Remove platform hardcode for golang
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik Basavaraj committed Jun 10, 2021
1 parent c39c137 commit 08738b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Expand Up @@ -12,10 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Hard-coded platform to `linux/amd64` because
# 1) go mod download is super slow with arm64 on x86 host since it requires QEMU simulation at software level.
# 2) a better approach with `--platform={BUILDPLATFORM}` is only supported by docker buildx not docker build.
FROM --platform=linux/amd64 golang:1.13.4-stretch as builder
FROM golang:1.13.4-stretch as builder
WORKDIR /go/src/github.com/kubernetes-sigs/aws-efs-csi-driver

ARG TARGETOS
Expand Down

0 comments on commit 08738b8

Please sign in to comment.