Spaces:
Runtime error
Runtime error
File size: 564 Bytes
ceb943f dd0a1bc ceb943f dd0a1bc ceb943f | 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 27 28 | FROM node:20-bullseye
# Install FFmpeg, Python3 (for yt-dlp), and yt-dlp
RUN apt-get update && apt-get install -y \
ffmpeg \
python3 \
python3-pip \
libvips-dev \
&& pip3 install --no-cache-dir -U yt-dlp \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy package files
COPY legacy_configs/fly/fly-server/package*.json ./
# Install dependencies
RUN npm install
# Copy server code
COPY legacy_configs/fly/fly-server/server.js ./
# Expose port (7860 is default for Hugging Face Spaces)
EXPOSE 7860
# Start server
CMD ["npm", "start"]
|