Gleb Gleb
commited on
Commit
·
cddda61
1
Parent(s):
66ecc97
change
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -2,30 +2,30 @@
|
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
# Set environment variables for Java and cache directory
|
| 5 |
-
ENV JAVA_HOME=/usr/lib/jvm/java-
|
| 6 |
ENV XDG_CACHE_HOME=/tmp/.cache
|
| 7 |
ENV PATH="${JAVA_HOME}/bin:${PATH}"
|
| 8 |
|
| 9 |
# Set working directory
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
-
# Install
|
| 13 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 14 |
-
openjdk-
|
| 15 |
build-essential \
|
| 16 |
curl \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
-
# Copy
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
# Upgrade pip
|
| 23 |
RUN pip install --upgrade pip
|
| 24 |
|
| 25 |
-
# Install
|
| 26 |
RUN pip install "impresso_pipelines[solrnormalization]==0.4.6.4"
|
| 27 |
|
| 28 |
-
# Install
|
| 29 |
RUN pip install gradio
|
| 30 |
|
| 31 |
# Expose Gradio default port
|
|
|
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
# Set environment variables for Java and cache directory
|
| 5 |
+
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
|
| 6 |
ENV XDG_CACHE_HOME=/tmp/.cache
|
| 7 |
ENV PATH="${JAVA_HOME}/bin:${PATH}"
|
| 8 |
|
| 9 |
# Set working directory
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
+
# Install Java 17 and build tools
|
| 13 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 14 |
+
openjdk-17-jdk \
|
| 15 |
build-essential \
|
| 16 |
curl \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
+
# Copy app code (app.py etc.)
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
# Upgrade pip
|
| 23 |
RUN pip install --upgrade pip
|
| 24 |
|
| 25 |
+
# Install your PyPI package with solrnormalization extras
|
| 26 |
RUN pip install "impresso_pipelines[solrnormalization]==0.4.6.4"
|
| 27 |
|
| 28 |
+
# Install gradio if not already pulled in
|
| 29 |
RUN pip install gradio
|
| 30 |
|
| 31 |
# Expose Gradio default port
|