puppeter-playground / Dockerfile
Nexchan's picture
Update Dockerfile
f73e0fd verified
raw
history blame
554 Bytes
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"]