File size: 493 Bytes
29cd1f5 348d428 29cd1f5 348d428 29cd1f5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Gunakan base image Node.js
FROM node:18-bullseye
# Buat direktori kerja di dalam container
WORKDIR /app
RUN apt-get update && apt-get install -y python3 python3-pip ffmpeg && \
pip3 install spotdl yt-dlp
# Salin package.json dan package-lock.json ke direktori kerja
COPY package*.json ./
# Install dependencies
RUN npm install
# Salin semua file proyek ke direktori kerja
COPY . .
# Expose port yang digunakan oleh aplikasi
EXPOSE 7860
# Jalankan aplikasi
CMD ["npm", "start"] |