Skip to content
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

How to properly use nestia in Docker #892

Closed
itzRolf opened this issue May 1, 2024 · 1 comment
Closed

How to properly use nestia in Docker #892

itzRolf opened this issue May 1, 2024 · 1 comment

Comments

@itzRolf
Copy link

itzRolf commented May 1, 2024

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:

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" ]
@itzRolf
Copy link
Author

itzRolf commented May 2, 2024

Works without ENV NODE_ENV production

@itzRolf itzRolf closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant