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

35 lines
1.4 KiB
Docker
Raw Normal View History

2022-05-07 03:11:26 +03:00
FROM epicmorg/debian:bullseye
2022-03-18 18:39:42 +03:00
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# Node.js 14.x
##################################################################
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
2022-03-18 18:39:42 +03:00
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
echo "deb https://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sources.list.d/yarn.list && \
2022-06-05 12:18:03 +03:00
apt-get clean && apt-get autoclean && \
2022-03-18 18:39:42 +03:00
apt-get update && \
2022-06-05 12:18:03 +03:00
apt-get install -y -o 'Acquire::Retries=3' nodejs yarn
2022-03-18 18:39:42 +03:00
# curl -L https://www.npmjs.com/install.sh | sh
# npm install -g npm
RUN echo "=============================================" && \
echo node $(node --version) && \
echo npm $(npm --version) && \
echo yarn $(yarn --version) && \
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 && \
2022-11-16 13:18:12 +03:00
rm -rfv /tmp/*