File tree 2 files changed +2
-27
lines changed
2 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ WORKDIR /iframely
9
9
ENV NODE_ENV=production
10
10
11
11
RUN apk add --no-cache git && \
12
- yarn add forever && \
13
12
yarn install --frozen-lockfile --production
14
13
15
14
ENTRYPOINT [ "/iframely/docker/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1
- #! /bin/ash
1
+ #! /bin/sh
2
2
3
- export ARGV=" $@ "
4
- export ARGC=" $# "
5
-
6
- function sigterm_handler() {
7
- echo " SIGTERM signal received."
8
- yarn forever stopall
9
- }
10
-
11
- trap " sigterm_handler; exit" TERM
12
-
13
- function entrypoint() {
14
- if [ " $ARGC " -eq 0 ]
15
- then
16
- # Run server in cluster mode by default
17
- yarn forever start cluster.js
18
- else
19
- # Use command line arguments supplied at runtime
20
- yarn forever start $ARGV
21
- fi
22
-
23
- yarn forever --fifo logs 0 &
24
- wait
25
- }
26
-
27
- entrypoint
3
+ exec node cluster.js
You can’t perform that action at this time.
0 commit comments