Spaces:
Paused
Paused
| FROM node:latest | |
| RUN apt-get update && \ | |
| apt-get install -y neofetch ffmpeg curl python3 python3-pip python3-venv build-essential libvips libvips-dev libjpeg-dev libpng-dev && \ | |
| rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY package.json . | |
| RUN npm install -g npm@latest node-gyp | |
| RUN npm install | |
| # Create and activate a virtual environment | |
| RUN python3 -m venv /venv | |
| ENV PATH="/venv/bin:$PATH" | |
| # Install speedtest-cli within the virtual environment | |
| RUN pip install --no-cache-dir speedtest-cli | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["node", "index.js"] |