Merge pull request #104 from StefanScherer/build-arm64

Build amd64 and arm64 image
This commit is contained in:
Stefan Scherer 2020-12-10 19:42:46 +01:00 committed by GitHub
commit 3de6451f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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' ) .