sparknlp-gguf / Dockerfile
abdullahmubeen10's picture
Update Dockerfile
54bad84 verified
raw
history blame
777 Bytes
# Use the official Python image as a base
FROM python:3.8-slim
# Add repository for OpenJDK 8 and install it
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:openjdk-r/ppa && \
apt-get update && \
apt-get install -y openjdk-8-jdk && \
apt-get clean
# Set Java environment variables
ENV JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
ENV PATH="$JAVA_HOME/bin:$PATH"
# Install Python dependencies
COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip && pip install -r /app/requirements.txt
# Copy application code
COPY . /app
WORKDIR /app
# Expose port for Streamlit
EXPOSE 7860
# Run Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]