Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| # Install curl and gnupg (for adding NodeSource repo) | |
| RUN apt-get update && apt-get install -y curl gnupg && \ | |
| curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | |
| apt-get install -y nodejs && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Now node and npm are installed | |
| RUN node --version | |
| RUN npm --version | |
| # Continue with your Python app setup here... | |
| COPY . /app | |
| WORKDIR /app | |
| RUN pip install -r requirements.txt | |
| CMD ["python", "app.py"] | |