-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker build failing since alpine:3.14 #603
Comments
you may find it on https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2 |
Wow, thanks for the link. Turns out it happens only when building in a pipeline which uses A quick workaround would be to change the base image to |
Thanks for looking into to. I agree that sticking to 3.13 would be the best solution. Can you please create pull request? |
This issue is no longer valid.
While this is true, in this case I'm not sure it really applies. Beanstalkd is a standalone binary afaik (correct me if I'm wrong). FROM myownbase
COPY --from=ghcr.io/beanstalkd/beanstalkd:latest /usr/bin/beanstalkd /usr/bin/ Alternatively if you want to build it from source just append something like this to the dockerfile (including base docker file for readability): FROM alpine as builder
RUN \
apk -U upgrade --no-cache && \
apk add --no-cache build-base git
COPY . /tmp/beanstalkd
RUN \
cd /tmp/beanstalkd && \
make
################################
FROM alpine
RUN apk -U upgrade --no-cache
COPY --from=builder /tmp/beanstalkd/beanstalkd /usr/bin/
RUN mkdir /beanstalkd
EXPOSE 11300
ENTRYPOINT ["/usr/bin/beanstalkd"]
## Use my custom base image
FROM myownbaseimage
COPY --from=builder /tmp/beanstalkd/beanstalkd /usr/bin/
RUN my own preparation step Looking at the original dockerfile again though I do see that we're running |
Scrap my previous comment, forgot all about build args! |
Dockerfile uses
FROM alpine
which always pulls the:latest
tag. In June 2021 alpine latest tag changed from 3.13 to 3.14 and now the builds are failing:The text was updated successfully, but these errors were encountered: