Spaces:
Sleeping
Sleeping
Download Dockerfile from presencesw/split_temp_audio: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/spaces/presencesw/split_temp_audio/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/presencesw/split_temp_audio/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/presencesw/split_temp_audio/resolve/main/Dockerfile
522 Bytes
| FROM python:3.12 | |
| WORKDIR /app | |
| COPY ./requirements.txt /app/requirements.txt | |
| # copy all . to /app | |
| COPY . /app/ | |
| # RUN apt-get update && apt-get install -y espeak | |
| RUN apt-get update && apt-get install -y espeak-ng espeak-ng-data | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user | |
| ENV PATH=/home/user/.local/bin:$PATH | |
| # ENV GRADIO_SERVER_NAME=“0.0.0.0” | |
| # ENV GRADIO_SERVER_PORT=7860 | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| CMD [ "python", "app.py" ] | |