Skip to content

Commit

Permalink
feat: build Docker image for arm64 (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgloning committed May 4, 2024
1 parent 3a3998b commit 6c37e49
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"{{version}}"
],
"dockerImage": "peerjs-server",
"dockerPlatform": ["linux/amd64", "linux/arm64"],
"dockerFile": "Dockerfile",
"dockerProject": "peerjs"
}
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM docker.io/library/node:18.20.2 as build
FROM --platform=$BUILDPLATFORM docker.io/library/node:18.20.2 as build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN mkdir /peer-server
WORKDIR /peer-server
COPY package.json package-lock.json ./
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"yargs": "^17.6.2"
},
"devDependencies": {
"@codedependant/semantic-release-docker": "^4.3.0",
"@codedependant/semantic-release-docker": "^5.0.3",
"@parcel/core": "~2.12.0",
"@parcel/packager-ts": "~2.12.0",
"@parcel/transformer-typescript-types": "~2.12.0",
Expand Down

0 comments on commit 6c37e49

Please sign in to comment.