File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:18.15.0-alpine AS base
2
2
3
+ # Install tini
4
+ RUN apk add --no-cache tini
5
+
3
6
# Set the working directory
4
7
WORKDIR /app
5
8
9
+ # Use tini as entrypoint to handle killing processes
10
+ ENTRYPOINT ["/sbin/tini" , "--" ]
11
+
6
12
# Install build dependencies
7
13
RUN apk --no-cache --virtual build-dependencies add g++ make py3-pip
8
14
@@ -38,6 +44,9 @@ CMD [ "yarn", "dev:worker" ]
38
44
# Production stage
39
45
FROM node:18.15.0-alpine AS prod
40
46
47
+ # Install tini
48
+ RUN apk add --no-cache tini
49
+
41
50
# Set the working directory
42
51
WORKDIR /app
43
52
@@ -61,4 +70,6 @@ RUN yarn install --production=true --frozen-lockfile --network-timeout 1000000
61
70
# Clean up build dependencies
62
71
RUN apk del build-dependencies
63
72
73
+ # Use tini as entrypoint to handle killing processes
74
+ ENTRYPOINT ["/sbin/tini" , "--" ]
64
75
CMD [ "yarn" , "start" ]
You can’t perform that action at this time.
0 commit comments