File size: 646 Bytes
7c07f14
46cf5ec
 
7c07f14
46cf5ec
 
 
 
 
 
7c07f14
46cf5ec
 
7c07f14
5d3395a
 
7c07f14
5d3395a
46cf5ec
7c07f14
46cf5ec
 
5d3395a
46cf5ec
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
# Base image for Python
FROM python:3.10-slim

# Install Java (required for language-tool-python)
RUN apt-get update && apt-get install -y openjdk-11-jdk && rm -rf /var/lib/apt/lists/*

# Set JAVA_HOME environment variable
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
ENV PATH=$JAVA_HOME/bin:$PATH

# Set working directory
WORKDIR /app

# Copy the current directory contents into the container
COPY . /app

# Install Python dependencies from requirements.txt
RUN pip install --upgrade pip && pip install -r requirements.txt

# Expose port (optional, if using Gradio or similar)
EXPOSE 7860

# Command to run the app
CMD ["python", "app.py"]