Run node directly in Dockerfile CMD

Without yarn in cmd we don't need to import package.json
This commit is contained in:
2022-11-02 22:05:48 +01:00
parent d713786685
commit ef3a394657

View File

@@ -18,4 +18,4 @@ COPY node_modules/ node_modules
EXPOSE 3000 EXPOSE 3000
CMD ["yarn", "start"] CMD ["node", "lib/app.js"]