Build amd64 and arm64 image
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
parent
23e02b9a44
commit
b66f1c3224
@ -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
|
||||||
|
2
build.sh
2
build.sh
@ -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' ) .
|
||||||
|
Loading…
Reference in New Issue
Block a user