ENTRYPOINT lan CMD loro-lorone nggandeng apa sing mlaku nalika container miwiti, nanging padha gawe peran beda lan obah ing cara-cara khusus. Mangerteni bedane (lan loro bentuke — exec vs shell) penting kanggo nulis Dockerfile sing tumindak bener.
CMD — perintah default (bisa diganti)
CMD ["node", "server.js"]
# → the DEFAULT command when the container starts
# → but it's REPLACED if you pass a command at run time:
# docker run myapp echo hello → runs "echo hello" INSTEAD of node server.js
nyedhiyakake , kang dening perintah apa wae sing diwenehi ing .
