mirror of
https://github.com/xtrll/MusicMetaFinder.git
synced 2026-04-18 00:03:28 +02:00
- Add Dockerfile to project root - Install required dependencies including ffmpeg and libchromaprint-tools - Set up working directory and copy necessary files - Define entry point for running CLI application - Configure volume mounting to reflect changes between container and local directory
25 lines
624 B
Docker
25 lines
624 B
Docker
# Use an official Node.js version as base image
|
|
FROM node:22-slim
|
|
|
|
# Install dependencies, including ffmpeg
|
|
RUN apt-get update && \
|
|
apt-get install -y ffmpeg libchromaprint-tools && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Set the working directory inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json to the working directory
|
|
COPY package*.json ./
|
|
|
|
# Install Node.js dependencies
|
|
RUN npm install
|
|
|
|
# Copy the rest of the application files to the working directory
|
|
COPY . .
|
|
|
|
|
|
# Specify the command to run your CLI application
|
|
ENTRYPOINT ["node", "--env-file", ".env", "cli.js"]
|