Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
-
#
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
-
# Install Java (
|
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
|
12 |
WORKDIR /app
|
13 |
|
14 |
-
# Copy the current directory contents into the container
|
15 |
COPY . /app
|
16 |
|
17 |
-
# Install Python dependencies
|
18 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
19 |
|
20 |
-
# Expose port
|
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
|