Spaces:
Paused
Paused
Download Dockerfile from Ethscriptions/coinpush: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/spaces/Ethscriptions/coinpush/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ethscriptions/coinpush/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ethscriptions/coinpush/resolve/main/Dockerfile
645 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 \ | |
| MONITOR_DATA_DIR=/data \ | |
| CRYPTO_CONFIG_FILE=/data/crypto_config.json \ | |
| COINPUSH_DISABLE_STREAMLIT_BOOTSTRAP=1 | |
| WORKDIR $HOME/app | |
| # 安装依赖 | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| RUN mkdir -p /data && chmod 777 /data | |
| USER user | |
| # 复制应用代码 | |
| COPY --chown=user . . | |
| EXPOSE 7860 | |
| # 启动 FastAPI + 后台 worker | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |