KEINOS / Dockerfile_of_PHP8-JIT

✅ Dockerfile of PHP8.0 with JIT Enabled in Alpine Image.
https://arkadiuszkondas.com/how-to-run-php-8-with-jit-support-using-docker/
9 stars 4 forks source link

Docker image tag as "armv7l" instead of "arm32v7" so to use "$(uname -m)" #9

Closed KEINOS closed 4 years ago

KEINOS commented 5 years ago

Use armv7l as a Docker image tag instead of arm32v7

Current Docker image tags in Docker Hub, such as arm32v7 arm32v6 are not convenient to use in Dockerfile. Since they are in original format, it is annoing to find out the tags.

If the tags are equivalent to the results of uname -m, we can define Dockerfile as below.

ARG NAME_TAG_IMAGE=latest

FROM keinos/php8-jit:$NAME_TAG_IMAGE
...

And then, the user can build the image with the below command.

docker build -t my_image:local --build-arg NAME_TAG_IMAGE=$(uname -m) .
KEINOS commented 4 years ago

This issue has been fixed. Closing.