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

40 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 17.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
RUN curl -fsSL https://deb.nodesource.com/setup_17.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-21 12:20:34 +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-21 12:20:34 +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 && \
rm -rfv /tmp/deb/* && \
rm -rfv /tmp/composer-setup.php && \
rm -rfv /tmp/amxx_base_latest.tar.gz && \
rm -rfv /tmp/atlassian-plugin-sdk.deb && \
rm -rfv /tmp/addons