Closed itzRolf closed 2 months ago
I always get: Error: Cannot find module "ts-patch" (or "typescript" when trying to install ts-patch globally or 'get-function-location')
My current Dockerfile:
FROM node:lts-alpine WORKDIR /usr/src/app ENV NODE_ENV production COPY package*.json ./ RUN npm install COPY . . RUN npx prisma generate RUN npx nestia setup --manager npm --project tsconfig.json RUN npm run build EXPOSE 3000 CMD [ "npm", "run", "start:prod" ]
Works without ENV NODE_ENV production
ENV NODE_ENV production
Question
I always get: Error: Cannot find module "ts-patch" (or "typescript" when trying to install ts-patch globally or 'get-function-location')
My current Dockerfile: