FROM node:20-alpine # Set the working directory WORKDIR /app # Copy package.json and package-lock.json COPY package*.json ./ # Install dependencies RUN npm install --production # Copy the rest of the application code COPY . . # Expose the port the app runs on EXPOSE 8000 # Install netcat for health checks RUN apk add --no-cache netcat-openbsd # Install the cli tools RUN chmod +x ./freetube.sh RUN cp ./freetube.sh /usr/local/bin/freetube # Start the application CMD ["npm", "start"]