SoUmNerd commited on
Commit
da82982
·
1 Parent(s): ee6a7c5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,12 +1,14 @@
1
  FROM ubuntu:latest
 
2
 
3
- # Instalação das dependências necessárias
4
- RUN apt-get update && apt-get install -y nodejs && apt-get install -y npm
5
- RUN npm install --global code-server --unsafe-perm
 
 
6
 
 
7
 
8
- # Exposição da porta do code-server
9
  EXPOSE 7860
10
 
11
- # Comando para iniciar o code-server
12
  CMD ["code-server", "--bind-addr", "0.0.0.0:7860"]
 
1
  FROM ubuntu:latest
2
+ RUN apt-get update && apt-get install -y curl
3
 
4
+ RUN curl -fsSL https://deb.nodesource.com/setup_16.0.0 | bash -
5
+ RUN apt-get install -y nodejs
6
+ RUN npm install -g n
7
+ RUN n 16
8
+ RUN node -v
9
 
10
+ RUN npm install --global code-server --unsafe-perm
11
 
 
12
  EXPOSE 7860
13
 
 
14
  CMD ["code-server", "--bind-addr", "0.0.0.0:7860"]