Skip to content

Can't use arguments with EXPOSE #144

Description

@stephbat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions