election-app / Dockerfile.txt
ntdservices's picture
Upload 4 files
4022d81 verified
raw
history blame contribute delete
377 Bytes
# Use an official Python runtime as base
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the code (app.py, index.html, etc.)
COPY . .
# Expose port (Render/HF will honor this)
EXPOSE 9032
# Start the Flask app
CMD ["python", "app.py"]