File size: 754 Bytes
632d5cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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"]