ValorSentimental / backend /Dockerfile
iagofp's picture
chore: configurar despliegue en HF Spaces
5a2a43a
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY backend/ ./backend/
COPY data/ ./data/
WORKDIR /app/backend
ENV PYTHONUNBUFFERED=1
ENV FLASK_ENV=production
EXPOSE 5000
CMD ["python", "main.py"]