diff --git a/lib/read-metadata.js b/lib/read-metadata.js index 9000be4..4b9f626 100644 --- a/lib/read-metadata.js +++ b/lib/read-metadata.js @@ -74,20 +74,6 @@ module.exports = async function (path, { throw e } - if (!docker.some(cmd => cmd.name === 'CMD')) { - const e = Error('No `CMD` found in `Dockerfile`. ' + - 'See: https://docs.docker.com/engine/reference/builder/#/cmd') - e.userError = true - throw e - } - - if (!docker.some(cmd => cmd.name === 'EXPOSE')) { - const e = Error('No `EXPOSE` found in `Dockerfile`. A port must be supplied. ' + - 'See: https://docs.docker.com/engine/reference/builder/#/expose') - e.userError = true - throw e - } - const labels = {} docker .filter(cmd => cmd.name === 'LABEL')