Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit c2962b7

Browse files
authored
Explicit specify the platform for Docker files (#258)
Motivation: We should explicit specify the platform we use for docker to ensure our build produce the correct artifacts Modifications: Add --platform=linux/amd64 to docker files Result: Ensure build produces correct artifacts
1 parent 0e9c440 commit c2962b7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docker/Dockerfile.centos6

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM centos:6.10
1+
FROM --platform=linux/amd64 centos:6.10
22

33
ENV MAVEN_VERSION 3.9.1
44

docker/Dockerfile.centos7

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM centos:7.6.1810
1+
FROM --platform=linux/amd64 centos:7.6.1810
22

33
ARG gcc_version=10.2-2020.11
44
ENV GCC_VERSION $gcc_version

docker/Dockerfile.centos7arm64v8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM arm64v8/centos:7.6.1810
1+
FROM --platform=linux/amd64 arm64v8/centos:7.6.1810
22

33
ENV MAVEN_VERSION 3.9.1
44

0 commit comments

Comments
 (0)