Skip to content

v2.1.0 breaks Docker RUN command #120

@ghost

Description

With the earlier version, you could use this docker image in a Dockerfile, e.g.

FROM ghcr.io/bwbohl/sencha-cmd
... etc ...
RUN sencha app build production

This no longer works, as the sencha command is only added to the PATH when you launch bash within the image.
(By default, Docker uses sh to execute RUN commands.)

It can be worked around by using the full path in the RUN command:

RUN /opt/Sencha/Cmd/sencha app build production

If this is the only solution, it should probably be documented.

I also tried telling Docker to use bash as the default execution shell:

SHELL ["/bin/bash", "-c"]

But this did not help, as it seems like .bashrc (where the PATH is updated) is not used when launching commands like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions