Download Dockerfile from exable324/fcb: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/spaces/exable324/fcb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/exable324/fcb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/exable324/fcb/resolve/main/Dockerfile
554 Bytes
| FROM lanol/filecodebox:beta | |
| # 设置环境变量 | |
| ENV PATH="/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin" | |
| ENV LANG=C.UTF-8 | |
| ENV PYTHON_VERSION=3.9.5 | |
| ENV PYTHON_PIP_VERSION=21.1.3 | |
| # 复制项目代码 | |
| COPY . /app | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 确保 /app/data 目录存在且可写 | |
| RUN mkdir -p /app/data && chmod -R 777 /app/data | |
| # 安装依赖 | |
| RUN pip install -r requirements.txt | |
| # 暴露应用端口(如果需要,可能还需要在代码中绑定环境变量 PORT) | |
| EXPOSE 12345 | |
| # 启动应用 | |
| CMD ["python", "main.py"] | |