Tried a lot already, but doesn't want to run docker-compose with entrypoint... I'm new to docker and trying to figure it out, but I can't seem to run the program through entrypoint.sh
Dockerfile
FROM python:3.7-alpine
WORKDIR /app
RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
RUN /usr/local/bin/python3 -m pip install --upgrade pip
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY /web .
COPY entrypoint.sh entrypoint.sh
RUN chmod u+x ./entrypoint.sh
docker-compose.yml
version: "3.9"
services:
  web:
    build: .
    ports:
      - "5000:5000"
    volumes:
      - ./web:/app
    environment:
      PG_HOST: pg
      PG_USER: ${POSTGRES_USER}
      PG_PASSWORD: ${POSTGRES_PASSWORD}
      PG_DB: ${POSTGRES_DB}
    depends_on:
      - pg
    entrypoint: entrypoint.sh
  pg:
    image: "postgres:alpine"
    environment:
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_DB: ${POSTGRES_DB}
    #      PGDATA: /var/lib/postgresql/data/pgdata
    #    volumes:
    #      - ./data/pgdata:/var/lib/postgresql/data/pgdata
    ports:
      - 5432:5432
entrypoint.sh
#python3 manage.py db upgrade
flask run --host=0.0.0.0
ERROR:
Step 1/11 : FROM python:3.7-alpine
 ---> c051b8594107
Step 2/11 : WORKDIR /app
 ---> Using cache
 ---> d19c508ff35c
Step 3/11 : RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev
 ---> Using cache
 ---> 19b5e197621a
Step 4/11 : ENV FLASK_APP=app.py
 ---> Using cache
 ---> af02528555c4
Step 5/11 : ENV FLASK_RUN_HOST=0.0.0.0
 ---> Using cache
 ---> 4029b777d985
Step 6/11 : RUN /usr/local/bin/python3 -m pip install --upgrade pip
 ---> Using cache
 ---> e94f1f70106b
Step 7/11 : COPY requirements.txt requirements.txt
 ---> Using cache
 ---> fb4ad7239fa2
Step 8/11 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> 1f912edd8219
Step 9/11 : COPY /web .
 ---> Using cache
 ---> 32966afa52ee
Step 10/11 : COPY entrypoint.sh entrypoint.sh
 ---> Using cache
 ---> 11525954905f
Step 11/11 : RUN chmod u+x ./entrypoint.sh
 ---> Using cache
 ---> 575c41093e1f
...
Successfully built 89b11d4d5f71
Successfully tagged rodauth_web:latest
rodauth_pg_1 is up-to-date
Recreating 1e4f3f2f6898_rodauth_web_1 ... 
Recreating 1e4f3f2f6898_rodauth_web_1 ... error
ERROR: for 1e4f3f2f6898_rodauth_web_1  Cannot start service web: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "entrypoint.sh": executable file not found in $PATH: unknown
ERROR: for web  Cannot start service web: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "entrypoint.sh": executable file not found in $PATH: unknown
Encountered errors while bringing up the project.
tried adding command RUN chmod u+x ./entrypoint.sh but
the problem is not gone.
Added the build log for COPY entrypoint.sh entrypoint.sh part.

 
     
     
     
    