How to override ENTRYPOINT in .gitlab-ci.yml

I need to override ENTRYPOINT, but when I do the job fails with “/bin/sh: can’t open ‘sh’”

foo:
    image: 
        name: alpine
        entrypoint: ["/bin/sh"]
    stage: deploy
    script:
    - echo $0
1 Like

I am also seeing this behavior. Using gitlab.com and an up to date multi runner (self-hosted).

I filed an issue here.

I was able to workaround the problem by setting the entrypoint to an empty string.

entrypoint: [""]

Hope that helps!

5 Likes

@rbhitchcock Thanks for creating the issue and confirming the behaviour!