diff --git a/Dockerfile b/Dockerfile index c3b8a9b..2f62558 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,16 +20,17 @@ COPY . . # Install yarn so it will be available read-only # https://github.com/nodejs/corepack/issues/183#issue-1379672431 +# https://github.com/nodejs/corepack/blob/bc13d40037d0b1bfd386e260ae741f55505b5c7c/tests/main.test.ts#L483 ENV COREPACK_HOME=/tmp/corepack RUN set -ex; \ - corepack enable yarn; \ - corepack pack -o ./corepack.tgz; \ - COREPACK_ENABLE_NETWORK=0 corepack install -g ./corepack.tgz; + corepack enable yarn; + # corepack pack -o ./corepack.tgz; \ + # COREPACK_ENABLE_NETWORK=0 corepack install -g ./corepack.tgz; # https://github.com/nodejs/corepack/pull/446#issue-2218976611 +RUN corepack install yarn RUN corepack yarn --version -RUN COREPACK_ENABLE_NETWORK=0 yarn --version # https://github.com/nodejs/corepack/issues/414#issuecomment-2096218732 RUN chmod 444 /tmp/corepack/lastKnownGood.json RUN chmod 555 /tmp/corepack @@ -58,4 +59,7 @@ ENV YARN_ENABLE_HARDENED_MODE=0 # Because I cry myself to sleep ENV DEBUG=* +# Let's check to be certain +RUN yarn --version + ENTRYPOINT [ "/opt/test-runner/bin/run.sh" ]