Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
@@ -1,3 +1,9 @@
|
|
1 |
FROM node:18
|
2 |
WORKDIR /app
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|