Files
MusicMetaFinder/Dockerfile
xtrullor73 06509c5695 feat(docker): create and configure Dockerfile for project
- 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
2024-06-12 19:56:27 -07:00

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"]