Skip to content

Commit

Permalink
updated package manager installations
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-blazer committed Aug 24, 2023
1 parent 231683a commit 89c99ef
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 64 deletions.
11 changes: 3 additions & 8 deletions nodejs/12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

# Install npm
RUN curl -L https://www.npmjs.com/install.sh | sh

# Install yarn
RUN apk add --update --no-cache yarn

# Install pnpm
RUN npm install -g pnpm
# Install npm, yarn, and pnpm
RUN curl -o- -L https://yarnpkg.com/install.sh | sh && \
npm install -g pnpm

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
11 changes: 3 additions & 8 deletions nodejs/14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

# Install npm
RUN curl -L https://www.npmjs.com/install.sh | sh

# Install yarn
RUN apk add --update --no-cache yarn

# Install pnpm
RUN npm install -g pnpm
# Install npm, yarn, and pnpm
RUN curl -o- -L https://yarnpkg.com/install.sh | sh && \
npm install -g pnpm

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
11 changes: 3 additions & 8 deletions nodejs/15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

# Install npm
RUN curl -L https://www.npmjs.com/install.sh | sh

# Install yarn
RUN apk add --update --no-cache yarn

# Install pnpm
RUN npm install -g pnpm
# Install npm, yarn, and pnpm
RUN curl -o- -L https://yarnpkg.com/install.sh | sh && \
npm install -g pnpm

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
11 changes: 3 additions & 8 deletions nodejs/16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

# Install npm
RUN curl -L https://www.npmjs.com/install.sh | sh

# Install yarn
RUN apk add --update --no-cache yarn

# Install pnpm
RUN npm install -g pnpm
# Install npm, yarn, and pnpm
RUN curl -o- -L https://yarnpkg.com/install.sh | sh && \
npm install -g pnpm

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
11 changes: 3 additions & 8 deletions nodejs/17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

# Install npm
RUN curl -L https://www.npmjs.com/install.sh | sh

# Install yarn
RUN apk add --update --no-cache yarn

# Install pnpm
RUN npm install -g pnpm
# Install npm, yarn, and pnpm
RUN curl -o- -L https://yarnpkg.com/install.sh | sh && \
npm install -g pnpm

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
11 changes: 3 additions & 8 deletions nodejs/18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

# Install npm
RUN curl -L https://www.npmjs.com/install.sh | sh

# Install yarn
RUN apk add --update --no-cache yarn

# Install pnpm
RUN npm install -g pnpm
# Install npm, yarn, and pnpm
RUN curl -o- -L https://yarnpkg.com/install.sh | sh && \
npm install -g pnpm

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
11 changes: 3 additions & 8 deletions nodejs/19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

# Install npm
RUN curl -L https://www.npmjs.com/install.sh | sh

# Install yarn
RUN apk add --update --no-cache yarn

# Install pnpm
RUN npm install -g pnpm
# Install npm, yarn, and pnpm
RUN curl -o- -L https://yarnpkg.com/install.sh | sh && \
npm install -g pnpm

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
11 changes: 3 additions & 8 deletions nodejs/20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

# Install npm
RUN curl -L https://www.npmjs.com/install.sh | sh

# Install yarn
RUN apk add --update --no-cache yarn

# Install pnpm
RUN npm install -g pnpm
# Install npm, yarn, and pnpm
RUN curl -o- -L https://yarnpkg.com/install.sh | sh && \
npm install -g pnpm

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]

0 comments on commit 89c99ef

Please sign in to comment.