docker-scripts/linux/ecosystem/nodejs/lts/Dockerfile

38 lines
1.5 KiB
Docker
Raw Normal View History

2022-05-07 03:11:26 +03:00
FROM epicmorg/debian:bullseye
2022-03-21 12:20:34 +03:00
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# Node.js LTS
##################################################################
2022-03-21 18:09:07 +03:00
RUN groupadd node && \
useradd --gid node --shell /bin/bash --create-home node
2022-03-21 12:20:34 +03:00
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
2024-02-09 19:08:46 +03:00
curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/yarnpkg.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/yarnpkg.gpg] https://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sources.list.d/yarn.list && \
apt-get clean && apt-get autoclean && \
2022-03-21 12:20:34 +03:00
apt-get update && \
2024-02-09 19:08:46 +03:00
apt-get install -y nodejs yarn && \
npm install -g pnpm
2022-03-21 12:20:34 +03:00
2024-02-09 19:08:46 +03:00
#RUN curl -L https://www.npmjs.com/install.sh | bash && \
# npm install -g npm
2022-03-21 12:20:34 +03:00
RUN echo "=============================================" && \
echo node $(node --version) && \
echo npm $(npm --version) && \
echo yarn $(yarn --version) && \
2024-02-09 19:08:46 +03:00
echo pnpm $(pnpm --version) && \
2022-03-21 12:20:34 +03:00
echo "============================================="
##################################################################
# cleaninig up
##################################################################
RUN apt clean -y && \
apt-get clean all && \
apt autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /var/cache/apt/archives/*.deb && \
2024-02-09 19:08:46 +03:00
rm -rfv /tmp/*