Java-Gradio-Chatbot / Dockerfile
anithai's picture
Dockerfile
4ec74b1 verified
Raw History Blame Contribute Delete
436 Bytes
FROM openjdk:11-jdk-slim
# Install Python and Gradio
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 python3-pip && \
pip3 install gradio && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy project files
COPY . /app
WORKDIR /app
# Run Gradio app
CMD ["python3", "app.py"]
# Set correct permissions for the working directory
RUN mkdir -p /app/flagged && chmod 777 /app/flagged