Dockerfile 390 B

1234567891011
  1. # Utilisez une image base de votre choix (ici, nous utilisons Ubuntu)
  2. FROM ubi8/ubi:latest
  3. # Copiez votre script bash dans le conteneur
  4. COPY entrypoint.sh /entrypoint.sh
  5. # Rendez le script exécutable
  6. RUN chown -R 0:0 /entrypoint.sh && chmod -R g+rwx /entrypoint.sh
  7. # Commande à exécuter quand le conteneur se lance (ici, elle est optionnelle)
  8. CMD ["/bin/bash", "-c", "/entrypoint.sh"]