kasaam89/Census-Income-Classifier
0
1FROM python:3.11-slim2 3# Set working directory4WORKDIR /app5 6# Install system dependencies7RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*8 9# Copy requirements and install10COPY requirements.txt .11RUN pip install --no-cache-dir -r requirements.txt12 13# Copy the entire project14COPY . .15 16# Make the start script executable17RUN chmod +x /app/start.sh18 19# Set environment variables for Hugging Face20ENV BACKEND_URL=http://127.0.0.1:800021 22# Hugging Face Spaces expects the app to be on port 786023EXPOSE 786024 25# Start both services using the shell script26CMD ["/bin/bash", "start.sh"]27 