fix: use tsx direct runner, drop node--import loader

This commit is contained in:
gitadmin 2026-05-02 13:16:48 +00:00
parent 1c64996a78
commit 66eea4922e

View file

@ -2,7 +2,7 @@ FROM node:20-alpine
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm install
COPY . . COPY . .
@ -10,4 +10,4 @@ EXPOSE 3000
ENV NODE_ENV=production ENV NODE_ENV=production
ENV PORT=3000 ENV PORT=3000
CMD ["node", "--import", "tsx/esm", "server.ts"] CMD ["node_modules/.bin/tsx", "server.ts"]