Spaces:
Configuration error
Configuration error
Download Dockerfile from Tadashiro/difyapplicationfortraining: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/spaces/Tadashiro/difyapplicationfortraining/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Tadashiro/difyapplicationfortraining/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Tadashiro/difyapplicationfortraining/resolve/main/Dockerfile
509 Bytes
| FROM python:3.11 | |
| # nodemonをインストールするためにNode.jsをインストール | |
| RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - | |
| RUN apt-get update && \ | |
| apt-get install -y nodejs npm | |
| # nodemonをインストール | |
| RUN npm install -g nodemon | |
| WORKDIR /workspace | |
| ADD .env requirements.txt app.py /workspace/ | |
| RUN pip install --upgrade -r /workspace/requirements.txt | |
| EXPOSE 7860 | |
| # nodemonを使用してアプリケーションを実行 | |
| CMD ["nodemon", "--exec", "python", "app.py"] |