Closed finda-yeongjo closed 4 months ago
I can't reproduce locally
Oh, maybe this is the information you need.
My github runner server is Amazon Linux 2023 ami-0d1b1d27dab2f860a
Maybe you can reproduce it if you test that server.
This might be related to your issues: https://github.com/docker/buildx/issues/1986
This issue has been resolved.
First, I checked and applied the notice in github action. (Ref. https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/) Second, I added the platform to be used in buildx. (ex. docker buildx create --name multiarch --platform linux/amd64,linux/arm64 --driver docker-container)
Afterwards, the above issue does not occur and it operates successfully.
Environment
Expected Behavior
Build Success
Current Behavior
Possible Solution
-
Steps to Reproduce
run: docker buildx build --platform linux/amd64
Additional Information
We were using only base imagea node:16.17.0-alpine in the same Dockerfile format. However, when upgrading the nodejs version and changing the base image to node:20.11.0-slim, the above issue occurs. (same for node:20.11.0, node:20.11.0-alpine)
The ln -sf command itself has nothing to do with whether the file exists or not, and it seems to be an error in the Dockerfile RUN command, but the same error occurs even if different RUN command formats are used. (
RUN bash -c 'ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime'
) (RUN ["/bin/ln", "-sf", "/usr/share/zoneinfo/Asia/Seoul", "/etc/localtime"]
)