FROM python:3.10-slim | |
# Instalar Node.js y JSHint | |
RUN apt-get update && \ | |
apt-get install -y curl gnupg && \ | |
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ | |
apt-get install -y nodejs && \ | |
npm install -g jshint | |
# Crear directorio para la app | |
WORKDIR /app | |
# Copiar archivos | |
COPY requirements.txt . | |
COPY app.py . | |
# Instalar dependencias de Python | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Comando por defecto | |
CMD ["python", "app.py"] | |