Skip to content

Commit

Permalink
Refactor Dockerfile and GitHub Actions for improved multi-architectur…
Browse files Browse the repository at this point in the history
…e support

- Removed the version check from the Dockerfile to streamline the build process.
- Updated GitHub Actions workflow to specify supported platforms for QEMU and Docker Buildx, enhancing multi-architecture build capabilities.

These changes enhance the CI/CD pipeline's efficiency and clarity, facilitating seamless builds across different architectures.
  • Loading branch information
Joachim Rosskopf committed Dec 28, 2024
1 parent 4f62de3 commit 0925175
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,13 @@ jobs:

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64,amd64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ WORKDIR /app
COPY --from=build flapi /app/flapi

# Ensure executable permissions
RUN chmod +x /app/flapi && \
/app/flapi --version
RUN chmod +x /app/flapi

ENTRYPOINT ["/app/flapi"]

0 comments on commit 0925175

Please sign in to comment.