Skip to content

Commit f2d27bf

Browse files
authored
feat(22): enable corepack (#130)
We have more services using pnpm or yarn. Use corepack to make it easier to use these package managers
1 parent 6ac45fe commit f2d27bf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

22/base/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ RUN install_packages make dumb-init && /tmp/awscli.sh && rm /tmp/awscli.sh \
1313
# Create our own user and remove the node user
1414
&& groupadd --gid $SERVICE_UID $SERVICE_USER \
1515
&& useradd --create-home --shell /bin/bash --gid $SERVICE_UID --uid $SERVICE_UID $SERVICE_USER \
16-
&& userdel -r node
16+
&& userdel -r node \
17+
# Enable Corepack
18+
&& npm install --global [email protected] \
19+
&& corepack enable
1720

1821
ADD --chmod=755 https://github.com/articulate/docker-bootstrap/releases/latest/download/docker-bootstrap_linux_${TARGETARCH} /entrypoint
1922
ADD --chmod=755 https://raw.githubusercontent.com/articulate/docker-bootstrap/main/scripts/docker-secrets /usr/local/bin/secrets

22/lambda/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN dnf -y install make zip shadow-utils \
1010
# Add service user
1111
&& /usr/sbin/groupadd --gid $SERVICE_UID $SERVICE_USER \
1212
&& /usr/sbin/useradd --create-home --shell /bin/bash --uid $SERVICE_UID --gid $SERVICE_UID $SERVICE_USER \
13+
# Enable Corepack
1314
&& npm install --global [email protected] \
1415
&& corepack enable \
1516
# clean up

0 commit comments

Comments
 (0)