atikur-rabbi commited on
Commit
0aef28b
1 Parent(s): 5fb5fee
Files changed (2) hide show
  1. Dockerfile +44 -19
  2. Dockerfilenode.txt +19 -0
Dockerfile CHANGED
@@ -1,26 +1,51 @@
1
- FROM node:latest
 
2
 
3
- # Create app directory
4
- WORKDIR /usr/src/app
5
 
6
- # Install app dependencies
7
- # A wildcard is used to ensure both package.json AND package-lock.json are copied
8
- # where available (npm@5+)
9
- COPY package*.json ./
10
 
11
- RUN npm install
12
- # If you are building your code for production
13
- # RUN npm ci --only=production
14
 
15
- # Bundle app source
16
- COPY . .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
 
18
 
19
- # vscode install
20
- RUN curl -fsSL https://code-server.dev/install.sh | sh
21
- RUN code-server -h
22
- # RUN code-server
23
 
24
- EXPOSE 8080
25
- # CMD [ "node", "app.js" ]
26
- CMD ["code-server"]
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM gitpod/openvscode-server:latest
2
+ USER root
3
 
4
+ # RUN apt-get update -y && apt-get upgrade -y && apt-get install -y sudo && apt-get install -y python3-pip && pip3 install --upgrade pip
5
+ # RUN apt-get install -y curl gnupg wget htop sudo git git-lfs software-properties-common build-essential libgl1 zip unzip
6
 
7
+ # RUN add-apt-repository ppa:flexiondotorg/nvtop
8
+ # RUN apt-get upgrade -y
9
+ # RUN apt-get install -y nvtop
 
10
 
11
+ # RUN pip3 install pandas scipy matplotlib && \
12
+ # pip3 install ipywidgets && \
13
+ # pip3 install torch torchvision torchaudio
14
 
15
+ # RUN apt-get update && apt-get install -y \
16
+ # curl \
17
+ # git \
18
+ # nodejs \
19
+ # npm \
20
+ # && rm -rf /var/lib/apt/lists/*
21
+ RUN apt-get update && apt-get install -y curl gnupg2 lsb-release && \
22
+ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
23
+ apt-key fingerprint 1655A0AB68576280 && \
24
+ export VERSION=node_16.x && \
25
+ export DISTRO="$(lsb_release -s -c)" && \
26
+ echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list && \
27
+ echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list && \
28
+ apt-get update && apt-get install -y nodejs && \
29
+ node -v && npm -v && \
30
+ npm install -g yarn && \
31
+ yarn -v && \
32
+ apt-get clean && \
33
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
34
 
35
+ RUN npm i -g n8n
36
 
 
 
 
 
37
 
38
+ RUN npm install -g pm2
39
+
40
+ ENV OPENVSCODE_SERVER_ROOT="/home/.openvscode-server"
41
+ ENV OPENVSCODE="${OPENVSCODE_SERVER_ROOT}/bin/openvscode-server"
42
+
43
+ USER openvscode-server
44
+
45
+ RUN ${OPENVSCODE} --install-extension njzy.stats-bar
46
+ RUN ${OPENVSCODE} --install-extension cweijan.vscode-ssh
47
+ RUN ${OPENVSCODE} --install-extension humao.rest-client
48
+
49
+ EXPOSE 7860
50
+
51
+ ENTRYPOINT [ "/bin/sh", "-c", "exec ${OPENVSCODE_SERVER_ROOT}/bin/openvscode-server --host 0.0.0.0 --port 7860 --without-connection-token \"${@}\"", "--" ]
Dockerfilenode.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:12-slim
2
+
3
+ # Create app directory
4
+ WORKDIR /usr/src/app
5
+
6
+ # Install app dependencies
7
+ # A wildcard is used to ensure both package.json AND package-lock.json are copied
8
+ # where available (npm@5+)
9
+ COPY package*.json ./
10
+
11
+ RUN npm install
12
+ # If you are building your code for production
13
+ # RUN npm ci --only=production
14
+
15
+ # Bundle app source
16
+ COPY . .
17
+
18
+ EXPOSE 8080
19
+ CMD [ "node", "app.js" ]