Skip to content

fix: ctrl+c not work when running use docker container #599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ COPY . /app
RUN pnpm run build

# build backend
FROM node:22-alpine as backend
FROM node:22-alpine AS backend

RUN npm install pnpm@8 -g

Expand All @@ -41,6 +41,8 @@ RUN pnpm build
# service
FROM node:22-alpine

RUN apk add --no-cache tini

RUN npm install pnpm@8 -g

WORKDIR /app
Expand All @@ -59,4 +61,6 @@ COPY --from=backend /app/build /app/build

EXPOSE 3002

CMD ["sh", "-c", "node --import tsx/esm ./build/index.js"]
ENTRYPOINT ["/sbin/tini", "--"]

CMD ["node", "--import", "tsx/esm", "./build/index.js"]