Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
@@ -1,12 +1,14 @@
|
|
1 |
FROM ubuntu:latest
|
|
|
2 |
|
3 |
-
|
4 |
-
RUN apt-get
|
5 |
-
RUN npm install
|
|
|
|
|
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"]
|