Closed Stackclash closed 2 years ago
Hi, thanks for the report. If you have time, can you tell me whether the same problem occurs if you use TypeScript at step 3 rather than JavaScript?
@michaelbromley I converted my project to typescript and the docker image works as expected. So will javascript not work for docker images?
Building Vendure projects with JavaScript is very under-tested compared to TypeScript. In fact, I would be quite surprised to find out that any production projects are being built with JS. As a result there are likely to be rough edges such as this that have not yet been discovered and fixed. To be honest, solving pure JS support is not a priority for me, and I encourage you to use TS - it will make things much easier in the long-run.
Ok thank you @michaelbromley. I'm fine with sticking to Typescript.
Describe the bug I'm attempting to create a Docker image with vendure. However, when the container starts up I get the following logs:
Here is the Dockerfile I'm using (I've tried nodejs version 14 and 16):
It ultimately looks like an issue with nestjs using the reflect-metadata package.
To Reproduce Steps to reproduce the behavior:
Mariadb
(Have local Mariadb instance)Javascript
docker build -t test/test .
docker run -dp 3000:3000 test/test:latest
Expected behavior I expect for the container to start the Vendure server instance
Environment (please complete the following information):