Trying to figure out how to get this executable containerised for docker Trying to figure out how to get this executable containerised for docker kubernetes kubernetes

Trying to figure out how to get this executable containerised for docker


In the dockerfile it is ./cloudflared, so that would be:

      command:        - ./cloudflared        - tunnel        - --url=http://localhost:8080        - --hostname=my-website        - --origincert=/etc/cloudflared/cert.pem        - --no-autoupdate

(also there is no reason to use both command and args, just pick one, if you drop the first item then use args).


In your Dockerfile move the cloudflared binary to /usr/local/bin folder instead of running it from current WORKDIR.

  && chmod +x cloudflared \  && mv cloudflared /usr/local/binENTRYPOINT ["cloudflared"]