Skip to content

Commit

Permalink
Follow tests closely
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Jul 30, 2024
1 parent 1689bb1 commit 4d25b9b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" ]

0 comments on commit 4d25b9b

Please sign in to comment.