Spaces:
Paused
Paused
Download Dockerfile from dejanseo/linkbert-gradio: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/spaces/dejanseo/linkbert-gradio/resolve/359c05b5d3bbb2f10dcf35d875c34a721042e8fc/Dockerfile
- Command line
-
hf download hf://spaces/dejanseo/linkbert-gradio@359c05b5d3bbb2f10dcf35d875c34a721042e8fc/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dejanseo/linkbert-gradio/resolve/359c05b5d3bbb2f10dcf35d875c34a721042e8fc/Dockerfile
474 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| git-lfs \ | |
| && git lfs install \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| GRADIO_SERVER_NAME=0.0.0.0 \ | |
| GRADIO_SERVER_PORT=7860 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |