We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e5747d commit d5b5e66Copy full SHA for d5b5e66
Dockerfile
@@ -22,7 +22,7 @@ COPY . /app
22
RUN pnpm run build
23
24
# build backend
25
-FROM node:22-alpine as backend
+FROM node:22-alpine AS backend
26
27
RUN npm install pnpm@8 -g
28
@@ -41,6 +41,8 @@ RUN pnpm build
41
# service
42
FROM node:22-alpine
43
44
+RUN apk add --no-cache tini
45
+
46
47
48
WORKDIR /app
@@ -59,4 +61,6 @@ COPY --from=backend /app/build /app/build
59
61
60
62
EXPOSE 3002
63
-CMD ["sh", "-c", "node --import tsx/esm ./build/index.js"]
64
+ENTRYPOINT ["/sbin/tini", "--"]
65
66
+CMD ["node", "--import", "tsx/esm", "./build/index.js"]
0 commit comments