Does Dockerfile dep inference work with `instructi...
# general
b
Does Dockerfile dep inference work with
instructions
? I can't seem to get it to infer a dep on a
pex_binary
.
Copy code
pex_binaries(
    name = "binaries",
    entry_points = [
        "doodad.py",
    ],
)

docker_image(
    name="img_name",
    instructions=[
        "FROM ubuntu:20.04",
        (
            "RUN apt-get -qq -y update &&"
            + " DEBIAN_FRONTEND=noninteractive apt-get -qq -y install"
            + " python3.8"
        ),
        "COPY path.to.thingamabob/doodad_py.pex /bin/helloworld",
    ],
)
If I
./pants package path/to/thingamabob/doodad.py
I see
Wrote dist/path.to.thingamabob/doodad_py.pex
🐛 1
1
Looks like an issue with using
instructions=
If I use a
Dockerfile
I see the dep