Skip to content

Commit

Permalink
build: build base Docker images for ARM
Browse files Browse the repository at this point in the history
Related to #83
  • Loading branch information
JoosepAlviste committed Feb 8, 2024
1 parent ac812a0 commit e09ea52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/docker-base-images/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM node:20-alpine AS base
FROM --platform=$BUILDPLATFORM node:20-alpine AS base

RUN npm i -g pnpm@8
2 changes: 1 addition & 1 deletion packages/docker-base-images/Dockerfile.dependencies
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-alpine AS base
FROM --platform=$BUILDPLATFORM node:20-alpine AS base

RUN npm i -g pnpm@8

Expand Down
4 changes: 2 additions & 2 deletions packages/docker-base-images/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"options": {
"cwd": "packages/docker-base-images",
"commands": [
"docker buildx build --push --cache-to type=gha,mode=max,scope=base --cache-from type=gha,scope=base -t ghcr.io/joosepalviste/serieslist-base:latest -f Dockerfile.base .",
"docker buildx build --push --cache-to type=gha,mode=max,scope=dependencies --cache-from type=gha,scope=dependencies -t ghcr.io/joosepalviste/serieslist-dependencies:latest -f Dockerfile.dependencies ."
"docker buildx build --push --cache-to type=gha,mode=max,scope=base --cache-from type=gha,scope=base -t ghcr.io/joosepalviste/serieslist-base:latest -f Dockerfile.base --platform=linux/arm64,linux/amd64 .",
"docker buildx build --push --cache-to type=gha,mode=max,scope=dependencies --cache-from type=gha,scope=dependencies -t ghcr.io/joosepalviste/serieslist-dependencies:latest -f Dockerfile.dependencies --platform=linux/arm64,linux/amd64 ."
],
"parallel": true
}
Expand Down

0 comments on commit e09ea52

Please sign in to comment.