Skip to content

Commit

Permalink
bad order of ops here
Browse files Browse the repository at this point in the history
  • Loading branch information
pavera committed Jan 20, 2023
1 parent f9bb687 commit 4bd7dc1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions npm_and_yarn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ RUN corepack enable \
&& corepack prepare yarn@3.2.3 --activate

USER dependabot
ENV DEPENDABOT_NATIVE_HELPERS_PATH="/opt"
COPY --chown=dependabot:dependabot npm_and_yarn/helpers /opt/npm_and_yarn/helpers
RUN bash /opt/npm_and_yarn/helpers/build

# START: HACKY WORKAROUND FOR NPM GIT INSTALLS SPAWNING CHILD PROCESS

Expand All @@ -34,9 +37,7 @@ COPY --chown=dependabot:dependabot updater/config/.yarnrc updater/config/.npmrc
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt

# END: HACKY WORKAROUND FOR NPM GIT INSTALLS SPAWNING CHILD PROCESS
ENV DEPENDABOT_NATIVE_HELPERS_PATH="/opt"
COPY --chown=dependabot:dependabot npm_and_yarn/helpers /opt/npm_and_yarn/helpers
RUN bash /opt/npm_and_yarn/helpers/build

# Our native helpers pull in yarn 1, so we need to reset the version globally to
# 3.2.3.
RUN corepack prepare yarn@3.2.3 --activate
Expand Down

0 comments on commit 4bd7dc1

Please sign in to comment.