Currently modus transpile doesn't work fully correctly because it turns out COPY --from=src_image . . in Dockerfile does not respect the WORKDIR property of src_image, and will instead resolve any relative path relative to /.
Example:
FROM alpine AS s1
WORKDIR /tmp
RUN echo hello > hello
FROM alpine
COPY --from=s1 hello hello
RUN cat hello
Step 4/6 : FROM alpine
---> c059bfaa849c
Step 5/6 : COPY --from=s1 hello hello
COPY failed: stat hello: file does not exist
Currently
modus transpile
doesn't work fully correctly because it turns outCOPY --from=src_image . .
in Dockerfile does not respect the WORKDIR property ofsrc_image
, and will instead resolve any relative path relative to/
.Example: