Browse Source

ADD freetube.sh

fix/clean
Astri4-4 5 months ago
parent
commit
9dd2fe92d1
  1. 4
      backend/Dockerfile
  2. 14
      backend/freetube.sh

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

14
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
Loading…
Cancel
Save