replicatedhq / dockerfilelint

An opinionated Dockerfile linter.
https://www.fromlatest.io
MIT License
979 stars 84 forks source link

Invalid Port Exposed error #188

Open dejwsz opened 2 years ago

dejwsz commented 2 years ago

I had such error " Invalid Port Exposed (Possible Bug)" with that part in my Dockerfile:

ARG PORT=5000 ENV PORT $PORT EXPOSE $PORT

Is that a wrong approach? The idea behind is to have an option to steer the exposed port value during a build time.

baruchoxman commented 1 year ago

Same here. Looks like a false-positive error..