Dockerfile doesn't build (anymore)
brnl-cfit opened this issue · 1 comments
brnl-cfit commented
I'm trying to build the image but it fails:
# docker build . -t ansible-gendoc:0.1.0 -t ansible-gendoc:latest
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 167.4kB
Step 1/13 : FROM alpine:3.16 as builder
---> 187eae39ad94
Step 2/13 : ENV PYROOT=/venv
---> Using cache
---> 0dbeacaac887
Step 3/13 : ENV PYTHONUSERBASE=$PYROOT
---> Using cache
---> 9c287e04fd6b
Step 4/13 : WORKDIR /
---> Running in 617d2b5ca705
Removing intermediate container 617d2b5ca705
---> 2a933b55ae37
Step 5/13 : RUN <<EOF
---> Running in a63247356dca
Removing intermediate container a63247356dca
---> 7a4690851cd8
Step 6/13 : COPY . /
---> 090e9302f59d
Step 7/13 : RUN <<EOF
---> Running in d1dbf282c988
Removing intermediate container d1dbf282c988
---> f9bf33edda12
Step 8/13 : FROM alpine:3.16 as default
---> 187eae39ad94
Step 9/13 : COPY --from=builder /*.whl /wheels/
COPY failed: no source files were specified
What's going on? I am unable to fix this.
# docker version
Client:
Version: 24.0.5
API version: 1.43
Go version: go1.20.6
Git commit: ced0996600
Built: Wed Jul 26 21:44:58 2023
OS/Arch: linux/amd64
Context: default
Server:
Engine:
Version: 24.0.5
API version: 1.43 (minimum version 1.12)
Go version: go1.20.6
Git commit: a61e2b4c9c
Built: Wed Jul 26 21:44:58 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.7.2
GitCommit: 0cae528dd6cb557f7201036e9f43420650207b58.m
runc:
Version: 1.1.9
GitCommit:
docker-init:
Version: 0.19.0
GitCommit: de40ad0
laurentlemercier commented
I had exactly this with a ubuntu fresh install. Just applying what's described at https://docs.docker.com/engine/install/ (removing docker, installing it from docker repo) and build is working.
Hope this helps