Meta-Hackathon / Dockerfile
parthpethia's picture
Complete restructuring for hackathon validator compliance with server package, uv.lock, and openenv-core
1e1ca31
raw
history blame contribute delete
587 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY environment/ ./environment/
COPY server/ ./server/
COPY openenv.yaml .
COPY inference.py .
COPY pyproject.toml .
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 1
# Run Flask app on port 7860 (HF Space standard)
EXPOSE 7860
ENV PORT=7860
CMD ["python", "-m", "server.app"]