-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (23 loc) · 839 Bytes
/
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
from ubuntu:latest
RUN apt-get update && apt-get install -y -q --no-install-recommends \
net-tools \
iputils-ping \
apt-transport-https \
build-essential \
ca-certificates \
curl \
git \
libssl-dev \
wget
RUN apt-get update -y && apt-get install -y rsyslog \
isc-dhcp-server \
isc-dhcp-client \
traceroute
RUN rm -rf /var/lib/apt/lists/*
RUN ls /etc/init.d/
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 18.14.2
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use --delete-prefix $NODE_VERSION"
ENV NODE_PATH $NVM_DIR/versions/node/$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH