-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (47 loc) · 1.69 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Jugal Kishore -- 2020
#
# Docker Image with Nodejs, and NPM installed
#
# Base Image: ubuntu:noble
FROM ubuntu:noble
# Setting Non-Interactive Build Time Environment Variable
ARG DEBIAN_FRONTEND=noninteractive
# Setting TERM Environment Variable
ENV TERM=xterm-256color
# Upating packages list
RUN apt-get update
# Upgrading packages
RUN apt-get -y upgrade
# Removing unused packages
RUN apt-get -y autoremove --purge
# Installing packages
RUN apt-get install -y --no-install-recommends \
git curl wget zip unzip vim nano \
tar zip unzip locales-all gpg \
openssh-client xz-utils tmux screen \
iputils-ping traceroute jq tree \
ca-certificates 1> /dev/null
# Setting up NodeJS
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt-get update && \
apt-get install -y nodejs
# Install tmate
RUN curl -sL https://raw.githubusercontent.com/crazyuploader/Bash/master/install/tmate.sh | bash -
# Clean up
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/*
# Install ffsend
RUN curl -sL https://raw.githubusercontent.com/crazyuploader/Bash/master/install/ffsend.sh | bash -
# Installing Prettier, Yarn
RUN npm install --global npm@latest && \
npm install --global prettier@latest && \
npm install --global yarn@latest
# Git Identity Setup
RUN curl -sLO https://raw.githubusercontent.com/crazyuploader/Bash/master/git_identity.sh && \
printf "\nalias setgit=\"bash /git_identity.sh\"" >> ~/.bashrc
# Displaying Versions
RUN echo "Node Version: $(node --version)" && \
echo "NPM Version: $(npm --version)" && \
echo "Yarn Version: $(yarn --version)"
CMD ["bash"]