diff --git a/backend/Dockerfile b/backend/Dockerfile index 997cf62..993ee06 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -11,7 +11,11 @@ COPY . . # Expose the port the app runs on EXPOSE 8000 +# Install netcat for health checks RUN apt-get update && apt-get install -y netcat-openbsd +# Install the cli tools + + # Start the application CMD ["npm", "start"] \ No newline at end of file diff --git a/backend/freetube.sh b/backend/freetube.sh new file mode 100644 index 0000000..edec560 --- /dev/null +++ b/backend/freetube.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Script pour exécuter Node.js avec les paramètres passés en ligne de commande + +# Récupérer tous les paramètres passés au script +PARAMS="$@" + +# Vérifier si des paramètres ont été fournis +if [ $# -eq 0 ]; then + echo "Aucun paramètre fourni." +else + echo "Exécution de Node.js avec les paramètres: $PARAMS" + node /app/tools.js $PARAMS +fi