Convomate-module / Dockerfile
shevadesuyash's picture
Upload 6 files
47d18ca verified
raw
history blame
567 Bytes
# Base image
FROM python:3.10-slim
# Environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Install dependencies
RUN apt-get update && apt-get install -y \
openjdk-17-jre-headless \
git \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy all project files
COPY . .
# Install Python packages
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Cache models during build
RUN python cache_models.py
# Expose port
EXPOSE 8080
# Run the Flask app
CMD ["python", "app.py"]