Spaces:
Paused
Paused
Download Dockerfile from mikmc5/Translator-Clone: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/mikmc5/Translator-Clone/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mikmc5/Translator-Clone/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mikmc5/Translator-Clone/resolve/main/Dockerfile
398 Bytes
| FROM python:3.12-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy project files | |
| COPY . /app | |
| # Install required packages | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends python3-dotenv && \ | |
| apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Run the application | |
| CMD ["python", "main.py"] | |