Fran6ff commited on
Commit
bbbbe31
1 Parent(s): c15f55b

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile-1 +25 -0
  2. server.js +14 -0
  3. start.sh +1 -0
Dockerfile-1 ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20
2
+
3
+
4
+ USER node
5
+
6
+
7
+ RUN git clone https://github.com/goodluck218/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