nexe in docker for NestJS + MikroORM + ts-morph #1072
Unanswered
mwaeckerlin
asked this question in
Q&A
Replies: 1 comment
-
This is from
Does this help in finding the issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All, I have a problem getting everything together:
MikroOrm needs file access for database migrations.
MikroOrm + ts-morph needs in addition access to generated
*.entity.d.ts
files.This
Dockerfile
works fine, just MikroOrm without ts-morph, providing the migrations separate:When enabling ts-morph with the same
Dockerfile
, the result is:So, let's just copy the sources by adding this line to the second stage:
COPY --from=build /app/backends/customer/dist/src /app/backends/customer/dist/src
Then the error message in the log is:
What's that?!?
Any idea?
I tried much more, including using
--resource
to add specific files/dirs, or even everything with**/*
, but all attempts end up with the same error message:ERROR e.isFile is not a function TypeError: e.isFile is not a function
Full output:
Beta Was this translation helpful? Give feedback.
All reactions