VishwaTechnologiesPvtLtd
Dockerfile
e252ab0
raw
history blame
640 Bytes
# Use a lightweight Python image
FROM python:3.10-slim
# Install Java and dependencies
RUN apt-get update && \
apt-get install -y openjdk-17-jre-headless wget unzip && \
apt-get clean
# Set environment variables for Java
ENV JAVA_HOME="/usr/lib/jvm/java-17-openjdk-amd64"
ENV PATH="$JAVA_HOME/bin:$PATH"
# Set working directory
WORKDIR /app
# Copy requirements and install Python packages
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port (if using Gradio, FastAPI, Flask, etc.)
EXPOSE 7860
# Default command (update as needed)
CMD ["python", "app.py"]