Java_Chatbot / Dockerfile
anithai's picture
Dockerfile
5e8068c verified
Raw History Blame Contribute Delete
394 Bytes
FROM openjdk:17-jdk-slim
# Set the working directory
WORKDIR /app
# Copy all project files
COPY . /app
# Create a 'lib' folder and copy the JSON jar file
RUN mkdir -p /app/lib
COPY lib/json-20210307.jar /app/lib/
# Install required Python dependencies
RUN pip install gradio
# Run Java with classpath including the JAR file
CMD ["java", "-cp", "/app/lib/json-20210307.jar:/app", "Main"]