Is there a way to change the CWD of the `docker_im...
# general
r
Is there a way to change the CWD of the
docker_image
rule? I have a use case of running Docker on a git submodule but I'm trying to avoid modifying the code in that submodule. So my setup is in the parent directory of the submodule and looks like
Copy code
docker_image(
    name="prom-aggregation-gateway",
    source="feat-configurable-gauge-agg/cmd/prom-aggregation-gateway/Dockerfile",
    dependencies=[
        ":submodule"
    ]
)

files(
    name = "submodule",
    sources = ["./feat-configurable-gauge-agg/**"]
)
Unfortunately, the Docker build isn't able to find
/prom-aggregation-gateway
Copy code
FROM alpine:3.10
COPY prom-aggregation-gateway /
ENTRYPOINT ["/prom-aggregation-gateway"]
1
Rubber duck debugging at its finest.