forked from mandatoryprogrammer/xsshunter-express
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (31 loc) · 734 Bytes
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
FROM node:12
# Set up directory for the server
RUN mkdir /app/
WORKDIR /app/
# Copy front-end over
COPY front-end/ /app/front-end/
WORKDIR /app/front-end/
RUN npm install
RUN npm run-script build
WORKDIR /app/
COPY package.json /app/
COPY package-lock.json /app/
RUN npm install
COPY server.js /app/
COPY probe.js /app/
COPY constants.js /app/
COPY notification.js /app/
COPY telegram_notifier.js /app/
COPY teams_notifier.js /app/
COPY database.js /app/
COPY api.js /app/
COPY app.js /app/
COPY utils.js /app/
COPY docker-entrypoint.sh /app/
RUN chmod +x /app/docker-entrypoint.sh
COPY templates /app/templates
# Expose both HTTP and HTTPS ports
EXPOSE 80
EXPOSE 443
# Start the server
ENTRYPOINT ["/app/docker-entrypoint.sh"]