I have a simple streamlit app that runs locally and also using a docker container. However when I deploy to an EKS cluster the deployment always fails. I am using the AWS Load Balancer Controller for Ingress and other pods are working correctly. Below is my Docker file for reference -
FROM amazonlinux:2
Install Python and pip
RUN yum install -y python3 python3-pip
Set the working directory
WORKDIR /app
Copy the requirements file
COPY requirements.txt .
ENV PATH=/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin:$PATH
Install dependencies
RUN python3 -m pip install -r requirements.txt
Copy application code
COPY . .
Start the Streamlit app
CMD [“/usr/local/bin/streamlit”, “run”, “app.py”]
kubectl events shows the following -
6s Warning Failed pod/wizdemo-c855bb5db-4hwgq Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “-listen=:80”: executable file not found in $PATH: unknown
this is puzzling asI am able to remotely login to the container image (using kubectl run --rm -it --image) on EKS and and run streamlit
Appreciate any suggestions that can help resolve.
Thanks