Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: install native pnpm and yarn packages #417

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 3 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,11 @@ LABEL org.opencontainers.image.source="https://github.com/renovatebot/base-image
RUN install-tool node 18.20.2

# renovate: datasource=npm
RUN install-tool corepack 0.28.0
RUN install-tool pnpm 8.15.7

# renovate: datasource=npm depName=pnpm
ARG PNPM_VERSION=8.15.7

# renovate: datasource=npm depName=yarn
ARG YARN_VERSION=1.22.22

# enable corepack and precache yarn and pnpm
RUN set -ex; \
corepack install --global pnpm@${PNPM_VERSION} yarn@${YARN_VERSION}; \
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 pnpm --version; \
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn --version; \
true

USER 1000

# precache yarn and pnpm
RUN set -ex; \
corepack install --global pnpm@${PNPM_VERSION} yarn@${YARN_VERSION}; \
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 pnpm --version; \
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn --version; \
true
# renovate: datasource=npm
RUN install-tool yarn 1.22.22
rarkins marked this conversation as resolved.
Show resolved Hide resolved

USER 0

# renovate: datasource=github-releases packageName=moby/moby
RUN install-tool docker v24.0.9
Expand Down