sashdev commited on
Commit
7c07f14
·
verified ·
1 Parent(s): 5d3395a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,23 +1,23 @@
1
- # Use a Python base image
2
  FROM python:3.10-slim
3
 
4
- # Install Java (needed for language-tool-python)
5
  RUN apt-get update && apt-get install -y openjdk-11-jdk && rm -rf /var/lib/apt/lists/*
6
 
7
  # Set JAVA_HOME environment variable
8
  ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
9
  ENV PATH=$JAVA_HOME/bin:$PATH
10
 
11
- # Set the working directory in the container
12
  WORKDIR /app
13
 
14
- # Copy the current directory contents into the container at /app
15
  COPY . /app
16
 
17
- # Install Python dependencies
18
  RUN pip install --upgrade pip && pip install -r requirements.txt
19
 
20
- # Expose port 7860 for Gradio
21
  EXPOSE 7860
22
 
23
  # Command to run the app
 
1
+ # Base image for Python
2
  FROM python:3.10-slim
3
 
4
+ # Install Java (required for language-tool-python)
5
  RUN apt-get update && apt-get install -y openjdk-11-jdk && rm -rf /var/lib/apt/lists/*
6
 
7
  # Set JAVA_HOME environment variable
8
  ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
9
  ENV PATH=$JAVA_HOME/bin:$PATH
10
 
11
+ # Set working directory
12
  WORKDIR /app
13
 
14
+ # Copy the current directory contents into the container
15
  COPY . /app
16
 
17
+ # Install Python dependencies from requirements.txt
18
  RUN pip install --upgrade pip && pip install -r requirements.txt
19
 
20
+ # Expose port (optional, if using Gradio or similar)
21
  EXPOSE 7860
22
 
23
  # Command to run the app