dockerfile_lint icon indicating copy to clipboard operation
dockerfile_lint copied to clipboard

Can't use arguments with EXPOSE

Open stephbat opened this issue 3 years ago • 1 comments

I get this error when I try to use arguments with EXPOSE

Line 104: -> EXPOSE $CI_SPARK_DRIVER_PORT ERROR: Invalid parameters for command.. Reference -> https://docs.docker.com/engine/reference/builder/

The dockerfile is: FROM ubuntu:18.04 ARG CI_SPARK_DRIVER_PORT=5001 EXPOSE $CI_SPARK_DRIVER_PORT

stephbat avatar Mar 04 '21 13:03 stephbat

I'm running into this as well.

taybin avatar Jun 15 '21 16:06 taybin