Skip to content

Commit

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

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

# Install npm and pnpm
RUN apk add --update --no-cache nodejs npm \
&& npm install -g pnpm

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

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

# Install npm and pnpm
RUN apk add --update --no-cache nodejs npm \
&& npm install -g pnpm

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

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

# Install npm and pnpm
RUN apk add --update --no-cache nodejs npm \
&& npm install -g pnpm

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

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

# Install npm and pnpm
RUN apk add --update --no-cache nodejs npm \
&& npm install -g pnpm

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

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

# Install npm and pnpm
RUN apk add --update --no-cache nodejs npm \
&& npm install -g pnpm

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

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

# Install npm and pnpm
RUN apk add --update --no-cache nodejs npm \
&& npm install -g pnpm

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

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

# Install npm and pnpm
RUN apk add --update --no-cache nodejs npm \
&& npm install -g pnpm

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

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

# Install npm and pnpm
RUN apk add --update --no-cache nodejs npm \
&& npm install -g pnpm

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

0 comments on commit c7ebeb7

Please sign in to comment.