Build amd64 and arm64 image

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
Stefan Scherer 2020-12-10 12:34:01 +01:00
parent 23e02b9a44
commit b66f1c3224
No known key found for this signature in database
GPG Key ID: 505AF50C5D02E697
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ RUN pip install -r requirements.txt
# Run tests to validate app # Run tests to validate app
FROM node:12-alpine AS app-base FROM node:12-alpine AS app-base
RUN apk add --no-cache python g++ make
WORKDIR /app WORKDIR /app
COPY app/package.json app/yarn.lock ./ COPY app/package.json app/yarn.lock ./
RUN yarn install RUN yarn install

View File

@ -9,6 +9,6 @@ else
fi fi
docker buildx build \ docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 \ --platform linux/amd64,linux/arm64 \
-t docker/getting-started:latest \ -t docker/getting-started:latest \
$( (( $WILL_PUSH == 1 )) && printf %s '--push' ) . $( (( $WILL_PUSH == 1 )) && printf %s '--push' ) .