FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy requirements first for caching
COPY requirements.txt .

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of your app
COPY . .

# Expose port (if your Flask app runs on 5000)
EXPOSE 5000

# Default command to run your app
CMD ["python", "socketengine.py"]

