ytdl-core / Dockerfile
Rianofc's picture
Update Dockerfile
348d428 verified
raw
history blame contribute delete
493 Bytes
# 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"]