Skip to content

Commit 6301c98

Browse files
author
DavertMik
committed
fixed docker build
1 parent a435a5e commit 6301c98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ COPY . /codecept
2222
WORKDIR /codecept
2323
RUN npm install
2424

25+
# Remove self-reference and create symlink to use root package.json with ESM exports
26+
RUN rm -rf /codecept/node_modules/codeceptjs && ln -sf /codecept /codecept/node_modules/codeceptjs
27+
2528
RUN ln -s /codecept/bin/codecept.js /usr/local/bin/codeceptjs
2629
RUN mkdir /tests
2730
WORKDIR /tests

0 commit comments

Comments
 (0)