Open tjsweetblack opened 3 weeks ago
Hi! Generally write your commit messages in the present tense. And mention an issue that you fix in the commit body. In this case that would be https://github.com/profanity-im/profanity/issues/2004. Please see https://github.com/profanity-im/profanity/blob/master/CONTRIBUTING.md for details.
This pull request addresses an error in the Dockerfile.arch file caused by using an incorrect base image reference (archlinux/latest). The Docker Hub archlinux repository does not support a latest tag, which leads to a "failed to resolve source metadata" error during the Docker build process. This PR updates the base image reference to archlinux, resolving the error and allowing for a successful build.
Problem
The current Dockerfile uses archlinux/latest as the base image:
FROM archlinux/latest
Since archlinux/latest does not exist on Docker Hub, attempting to build this Dockerfile results in the following error:
ERROR: failed to solve: archlinux/latest: failed to resolve source metadata for docker.io/archlinux/latest:latest: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Steps to Reproducesudo docker build -t profanity -f Dockerfile.arch .
Fix
This PR modifies the Dockerfile.arch to use the correct base image, archlinux, without the non-existent latest tag:
FROM archlinux
Validation
After applying this fix, you can verify that the Docker image builds successfully:
sudo docker build -t profanity -f Dockerfile.arch .
Impact
This change ensures that the Docker build can complete successfully without requiring additional permissions or custom image sources. It aligns the Dockerfile with the official Arch Linux image structure on Docker Hub, improving compatibility and reliability for users.