Spaces:
Sleeping
Sleeping
Download Dockerfile from petchsko/Translator_app: direct link, hf CLI and curl.
- Browser
- Download file 754 Bytes
-
https://huggingface.co/spaces/petchsko/Translator_app/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/petchsko/Translator_app/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/petchsko/Translator_app/resolve/main/Dockerfile
754 Bytes
| # Dockerfile for Translator App | |
| # Use an official Python runtime as a parent image | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the requirements file and application files into the container | |
| COPY requirements.txt ./ | |
| COPY translator_app.py ./Translator/ | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install Jupyter and necessary extensions | |
| # RUN pip install jupyter jupyter-server jupyterlab | |
| # Expose port for Jupyter Notebook | |
| EXPOSE 7860 | |
| # Run Jupyter Notebook | |
| # CMD ["jupyter", "notebook", "./Translator/translator_app.ipynb", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"] | |
| # Run Gradio application | |
| CMD ["python", "/app/Translator/translator_app.py"] |