Upload 3 files
Browse files- Dockerfile +25 -0
- server.js +14 -0
- start.sh +1 -0
Dockerfile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:20
|
2 |
+
|
3 |
+
|
4 |
+
USER node
|
5 |
+
|
6 |
+
|
7 |
+
RUN git clone https://github.com/Akay-mighty/Queen_Alya home/node/blue
|
8 |
+
|
9 |
+
|
10 |
+
WORKDIR /home/node/blue
|
11 |
+
|
12 |
+
|
13 |
+
RUN chmod -R 777 /home/node/blue/
|
14 |
+
|
15 |
+
|
16 |
+
RUN yarn install && yarn add http
|
17 |
+
|
18 |
+
|
19 |
+
COPY server.js .
|
20 |
+
|
21 |
+
|
22 |
+
COPY start.sh .
|
23 |
+
|
24 |
+
|
25 |
+
CMD ["bash","start.sh" ]
|
server.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const http = require('http');
|
2 |
+
|
3 |
+
|
4 |
+
http.createServer((req, res) => {
|
5 |
+
|
6 |
+
res.writeHead(200, {'Content-Type': 'text/html'});
|
7 |
+
|
8 |
+
res.end('<html><body><b><marquee>KING Alya<marquee></b></body></html>');
|
9 |
+
|
10 |
+
}).listen(7860, () => {
|
11 |
+
|
12 |
+
console.log('Server listening on port 7860');
|
13 |
+
|
14 |
+
});
|
start.sh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
node server.js & npm start
|