- ✨ Ajout de la fonctionnalité de correction via le menu contextuel. - 🗑️ Suppression de la fonctionnalité de correction en temps réel. - ➕ Ajout du script de fond (background.js) pour gérer le menu contextuel. - 📝 Mise à jour du manifest.json (permissions, service_worker, description). - 🐛 Correction de la logique de remplacement de texte dans content.js pour une meilleure compatibilité. - 🏗️ Mise à jour du Dockerfile pour construire l'extension Chrome dans un répertoire (non zippé). - 🛠️ Mise à jour du script build.sh pour gérer le nouveau format de sortie et nettoyer le répertoire. - 🌐 Traduction du manifest.json en français. - 📄 Ajout d'un README.md complet avec les instructions d'installation. - 🐛 Ajout de logs pour faciliter le débogage.
32 lines
1.1 KiB
Docker
32 lines
1.1 KiB
Docker
# Stage 1: The Builder
|
|
# This stage takes a lightweight Alpine Linux image, installs the 'zip' utility,
|
|
# and then copies your extension files into it to create the packages.
|
|
FROM alpine:latest AS builder
|
|
|
|
# Set the working directory inside the container.
|
|
WORKDIR /extension
|
|
|
|
# Copy all the extension files into the working directory.
|
|
# Ensure your Dockerfile is in the same directory as these files.
|
|
COPY manifest.json .
|
|
COPY popup.html .
|
|
COPY popup.js .
|
|
COPY content.js .
|
|
COPY background.js .
|
|
COPY images/ ./images/
|
|
|
|
# Stage 2: The Final Package
|
|
# This stage is a minimal image whose only purpose is to hold the final packages.
|
|
# Using alpine instead of scratch and adding a CMD makes it easier to interact with.
|
|
FROM alpine:latest
|
|
|
|
# Set the output directory.
|
|
WORKDIR /output
|
|
|
|
# Create a subdirectory for the Chrome extension and copy all files into it.
|
|
RUN mkdir chrome-extension
|
|
COPY --from=builder /extension/ ./chrome-extension/
|
|
|
|
# Add a default command to list the contents of the output directory.
|
|
# This makes the container runnable and prevents the "no command specified" error.
|
|
CMD ["ls", "-l"]
|