-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 846 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
28
29
30
31
# Use the official Ubuntu 22.04 as the base image (once available)
FROM ubuntu:22.04
# Update the package list and install necessary packages
RUN apt-get update && apt-get install -y \
curl \
git \
vim \
nodejs \
npm \
cmake
# Install NVM
RUN curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh -o install_nvm.sh \
&& bash install_nvm.sh \
&& echo 'source $HOME/.nvm/nvm.sh' >> $HOME/.bashrc
# Set up a working directory as /home/fuzz
WORKDIR /home/fuzz
# Add your application files to the container (if needed)
COPY rce.js /home/fuzz/pp.js
# Expose any ports your application may use (if needed)
# EXPOSE 80
# Start your application (if needed)
# CMD [ "node", "app.js" ]
# Source NVM and install Node.js LTS using bash
RUN /bin/bash -c "source $HOME/.nvm/nvm.sh && nvm install --lts"