java_chat / Dockerfile
anithai's picture
Dockerfile
aaeae1a verified
Raw History Blame
459 Bytes
FROM python:3.10-slim
# Install dependencies and Java
RUN apt-get update && \
apt-get install -y openjdk-17-jdk unzip && \
rm -rf /var/lib/apt/lists/*
# Verify Java installation (important for debugging)
RUN java -version
WORKDIR /app
# Copy project files
COPY . .
# Extract lib.zip to the correct path
RUN unzip lib.zip -d lib
# Install Python dependencies
RUN pip install -r requirements.txt
# Command to run the app
CMD ["python", "app.py"]