Spaces:
Runtime error
Runtime error
Download Dockefile from Taghrid/Translator: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/Taghrid/Translator/resolve/main/Dockefile
- Command line
-
hf download hf://spaces/Taghrid/Translator/Dockefile
-
curl -L -o Dockefile https://huggingface.co/spaces/Taghrid/Translator/resolve/main/Dockefile
507 Bytes
| FROM python:3.11.9 | |
| # Create the working directory | |
| RUN set -ex && mkdir /translator | |
| WORKDIR /translator | |
| # Install system dependencies fro Numpy | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libopenblas-dev \ | |
| gfortran | |
| # Install Python dependencies | |
| COPY requirements.txt ./requirements.txt | |
| RUN pip install -r requirements.txt | |
| # Copy the relevant directories | |
| COPY model/ ./model | |
| COPY . ./ | |
| # Run the web server | |
| EXPOSE 8000 | |
| ENV PYTHONPATH /translator | |
| CMD python /translator/app.py |