I'm dockerizing Flask app and when bringing up the project I get this error all the sudden:
ERROR: for flask Cannot start service users: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/usr/src/app/entrypoint.sh\": stat /usr/src/app/entrypoint.sh: no such file or directory": unknown
I'm not sure as to why is it complaining about entrypoint.sh
not existing because it's in the same directory as the Dockefile and up until now I wasn't encountering this issue.
below is my Dockerfile:
FROM python:3.8.2-slim
RUN apt-get update && \
apt-get -y install netcat && \
apt-get clean
WORKDIR /usr/src/app
COPY ./requirements.txt /usr/src/app/requirements.txt
RUN pip install -r requirements.txt
COPY ./entrypoint.sh /usr/src/app/entrypoint.sh
RUN chmod +x /usr/src/app/entrypoint.sh
COPY . /usr/src/app
CMD ["/usr/src/app/entrypoint.sh"]
Any insight into this much appreciated.