Spaces:
Sleeping
Sleeping
intento de et 2
Browse files- Dockerfile +4 -2
- entrypoint.sh +6 -10
Dockerfile
CHANGED
@@ -30,5 +30,7 @@ WORKDIR app
|
|
30 |
RUN ls
|
31 |
#USER root
|
32 |
#RUN cat /etc/passwd
|
33 |
-
|
34 |
-
CMD ["node", "mocos.js"]
|
|
|
|
|
|
30 |
RUN ls
|
31 |
#USER root
|
32 |
#RUN cat /etc/passwd
|
33 |
+
ENTRYPOINT ["./entrypoint.sh"]
|
34 |
+
#CMD ["node", "mocos.js"]
|
35 |
+
|
36 |
+
CMD["bash"]
|
entrypoint.sh
CHANGED
@@ -1,16 +1,12 @@
|
|
1 |
#! /bin/sh
|
2 |
-
apt update -y
|
3 |
-
apt upgrade -y
|
4 |
-
apt -y install apache2
|
5 |
-
apt -y install nodejs
|
6 |
-
|
7 |
-
node -v
|
8 |
-
|
9 |
-
rm -rf /var/lib/apt/lists/*
|
10 |
|
11 |
# pwd
|
12 |
# ls -la
|
13 |
# whoamiz
|
14 |
# id
|
15 |
-
|
16 |
-
|
|
|
1 |
#! /bin/sh
|
2 |
+
# apt update -y
|
3 |
+
# apt upgrade -y
|
4 |
+
# apt -y install apache2
|
5 |
+
# apt -y install nodejs
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# pwd
|
8 |
# ls -la
|
9 |
# whoamiz
|
10 |
# id
|
11 |
+
|
12 |
+
node mocos.js
|