-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 686 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (18 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Hysteria Backend - Docker Image
FROM node:20-alpine
WORKDIR /app
# Устанавливаем системные зависимости (mongodump для бэкапов)
RUN apk add --no-cache mongodb-tools
# Копируем зависимости
COPY package*.json ./
# Устанавливаем зависимости
RUN npm install --omit=dev
# Копируем исходники
COPY . .
# Создаём директории для логов, сертификатов и бэкапов
RUN mkdir -p logs greenlock.d/live greenlock.d/accounts backups && \
chmod -R 755 greenlock.d backups
# Порты
EXPOSE 8444 80 443
# Запуск
CMD ["node", "index.js"]