data-cleaning-env / Dockerfile
Yashwanth34567's picture
Upload folder using huggingface_hub
bbfa61a verified
Raw
History Blame Contribute Delete
1.12 kB
# Dockerfile
# ─────────────────────────────────────────────
# Data Cleaning OpenEnv β€” Container Setup
# ─────────────────────────────────────────────
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PORT=7860
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first (for caching)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy all project files
COPY . .
# Expose port
EXPOSE 7860
EXPOSE 7861
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:7860/ || exit 1
# Run the app
CMD ["python", "app.py"]