# 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"]