batanus commited on
Commit
9ac5005
1 Parent(s): 1137748

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -1,3 +1,9 @@
1
  FROM node:18
2
  WORKDIR /app
3
- CMD ["node"]
 
 
 
 
 
 
 
1
  FROM node:18
2
  WORKDIR /app
3
+ RUN echo "const http = require('http');\nconst server = http.createServer((req, res) => res.end('Hello World'));\nserver.listen(7860);" > server.js
4
+
5
+ # Указываем порт
6
+ EXPOSE 7860
7
+
8
+ # Запускаем сервер
9
+ CMD ["node", "server.js"]