Skip to content

Commit

Permalink
Publish only amd image in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikowski committed Sep 16, 2024
1 parent c049f34 commit bcd1287
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 383 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR /usr/src/app
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm i --only=production
RUN npm ci --only=production

# Copy app dist
COPY dist .
Expand Down
5 changes: 3 additions & 2 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ npm run build
if [ "${1:-''}" = "--push" ]; then
docker buildx build \
--build-arg VERSION_DETAILS="$VERSION_DETAILS" \
--platform linux/amd64,linux/arm64 \
--platform linux/amd64 \
--tag "$DOCKER_IMAGE_TAG" \
--push \
"$FABLO_REST_HOME"
else
docker build \
docker buildx build \
--build-arg VERSION_DETAILS="$VERSION_DETAILS" \
--platform linux/amd64 \
--tag "$DOCKER_IMAGE_TAG" \
"$FABLO_REST_HOME"
fi
Expand Down
Loading

0 comments on commit bcd1287

Please sign in to comment.