Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +0 -2
Dockerfile
CHANGED
@@ -2,8 +2,6 @@ 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"]
|
|
|
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 |
EXPOSE 7860
|
6 |
|
|
|
7 |
CMD ["node", "server.js"]
|