Spaces:
Sleeping
Sleeping
Download Dockerfile from eligapris/testing-ta-lib: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/spaces/eligapris/testing-ta-lib/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/eligapris/testing-ta-lib/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/eligapris/testing-ta-lib/resolve/main/Dockerfile
580 Bytes
| FROM continuumio/miniconda3 | |
| # Create a conda environment and install TA-Lib and other packages | |
| RUN conda create -n appenv python=3.9 -y && \ | |
| conda install -n appenv -c conda-forge ta-lib fastapi=0.104.1 uvicorn=0.24.0 pydantic=2.5.0 yfinance=0.2.28 requests=2.31.0 -y | |
| # Activate environment | |
| SHELL ["conda", "run", "-n", "appenv", "/bin/bash", "-c"] | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy application code | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["conda", "run", "-n", "appenv", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"] | |