Run node directly in Dockerfile CMD
Without yarn in cmd we don't need to import package.json
This commit is contained in:
@@ -18,4 +18,4 @@ COPY node_modules/ node_modules
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["yarn", "start"]
|
||||
CMD ["node", "lib/app.js"]
|
||||
|
||||
Reference in New Issue
Block a user