-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 764 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (20 loc) · 764 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
27
28
# Hysteria Backend - Docker Image
FROM node:20-alpine
WORKDIR /app
# System dependencies: mongodb-tools for backups. The access-logs pipeline now
# talks to an external ClickHouse over HTTP (pure-JS client), so no native
# runtime libraries are needed.
RUN apk add --no-cache mongodb-tools
# Копируем зависимости
COPY package*.json ./
# Устанавливаем зависимости
RUN npm install --omit=dev
# Копируем исходники
COPY . .
# Create directories for logs, certificates, backups and access-logs data.
RUN mkdir -p logs greenlock.d/live greenlock.d/accounts backups data/access-logs && \
chmod -R 755 greenlock.d backups data
# Порты
EXPOSE 8444 80 443
# Запуск
CMD ["node", "index.js"]