I am trying to dockerize a Python streamlit app, but the image I built is way to big (1.3GB). Is there any way to minimise the image size?
Here is my dockerfile:
FROM python:3.9
WORKDIR /app
COPY ./requirements.txt ./requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
EXPOSE 8501
COPY ./src ./src
COPY ./deployment/nginx.conf ./deployment/nginx.conf
And my requirements.txt file:
requests==2.16.0
beautifulsoup4==4.10.0
streamlit==1.10.0
lxml==4.7.1
Thanks for any help!