Gleb Gleb
some changes
8c7a402
raw
history blame contribute delete
664 Bytes
FROM python:3.11-slim
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
ENV XDG_CACHE_HOME=/tmp/.cache
ENV PATH="${JAVA_HOME}/bin:${PATH}"
WORKDIR /app
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
openjdk-17-jdk \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Create cache directory and set permissions
RUN mkdir -p /tmp/.cache/huggingface && chmod -R 777 /tmp/.cache
# Copy app files
COPY . .
# Upgrade pip and install packages
RUN pip install --upgrade pip
RUN pip install "impresso_pipelines[solrnormalization]==0.4.6.6"
RUN pip install gradio
EXPOSE 7860
CMD ["python", "app.py"]