Spaces:
Sleeping
Sleeping
File size: 554 Bytes
f73e0fd b900167 f73e0fd b900167 f73e0fd b900167 f73e0fd b900167 f73e0fd b900167 f73e0fd b900167 f73e0fd b900167 f73e0fd b900167 f73e0fd b900167 f73e0fd b900167 f73e0fd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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"] |