Merge pull request #104 from StefanScherer/build-arm64
Build amd64 and arm64 image
This commit is contained in:
commit
3de6451f5c
@ -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