0

I'm running below dockerfile, but I'm getting this error exec user process caused "no such file or directory

Dockerfile

FROM alpine:3.12

COPY entrypoint.sh /
RUN echo "hello"

ENTRYPOINT ["/entrypoint.sh"]

entrypoint.sh

#!/bin/bash

echo "START Running Docker"

I've my Dockerfile and entrypoint.sh in same directory - what's the mistake i'm doing here - could some please me to fix this issue.

Appreciated your help in advance!

marty
  • 91
  • 7
  • 1
    Alpine doesn't include GNU Bash by default. If you limit yourself to POSIX shell features (and you should) you can change the shebang line to `#!/bin/sh`. Changing `ENTRYPOINT` to `CMD` also might make the image easier to debug. – David Maze Jun 28 '21 at 23:04

0 Answers0