Spaces:
Sleeping
Sleeping
Download Dockerfile from soojeongcrystal/text: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/soojeongcrystal/text/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/soojeongcrystal/text/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/soojeongcrystal/text/resolve/main/Dockerfile
447 Bytes
| FROM python:3.10 | |
| # Install Java | |
| RUN apt-get update && \ | |
| apt-get install -y openjdk-11-jdk && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Set JAVA_HOME | |
| ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64 | |
| ENV PATH $JAVA_HOME/bin:$PATH | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application | |
| COPY . . | |
| # Run the application | |
| CMD ["streamlit", "run", "app.py"] |