You've already forked healthcheck
Инициализация
All checks were successful
Build and push Docker image / build (push) Successful in 1m2s
All checks were successful
Build and push Docker image / build (push) Successful in 1m2s
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# Используем стабильный образ Node.js на Alpine для минимального размера
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Устанавливаем зависимости
|
||||
COPY package*.json ./
|
||||
RUN npm install --production
|
||||
|
||||
# Копируем основной скрипт
|
||||
COPY server.js .
|
||||
|
||||
# Порт для Keepalived
|
||||
EXPOSE 8080
|
||||
|
||||
# Запускаем приложение
|
||||
CMD [ "npm", "start" ]
|
||||
Reference in New Issue
Block a user