FROM python:3.11-alpine WORKDIR /app RUN apk add --no-cache \ build-base \ wget \ tar \ bash \ libffi-dev \ && wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \ && tar -xvzf ta-lib-0.4.0-src.tar.gz \ && cd ta-lib \ && ./configure --prefix=/usr \ && make \ && make install \ && cd .. \ && rm -rf ta-lib ta-lib-0.4.0-src.tar.gz COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 8501 CMD ["streamlit", "run", "src/streamlit_app.py", "--server.headless=true", "--server.port=8501"]