diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c09cb26c..93727452 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,3 +40,11 @@ jobs: file: ./token-server/Dockerfile push: true tags: commerceblockx/token-server:latest + - + name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: ./explorer/Dockerfile + push: true + tags: commerceblockx/mercury-explorer:latest diff --git a/explorer/Dockerfile b/explorer/Dockerfile new file mode 100644 index 00000000..f7bb0e60 --- /dev/null +++ b/explorer/Dockerfile @@ -0,0 +1,14 @@ +# Use the official nginx image as the base +FROM nginx:latest + +# Define a working directory for the container +WORKDIR /usr/share/nginx/html + +# Copy the contents of your local /explorer folder to the container's working directory +COPY ./. . + +# Expose port 80 for web traffic +EXPOSE 80 + +# Use the default nginx configuration (serves content from the working directory) +CMD ["nginx", "-g", "daemon off;"] diff --git a/explorer/index.html b/explorer/index.html new file mode 100644 index 00000000..87e3afea --- /dev/null +++ b/explorer/index.html @@ -0,0 +1,112 @@ + + +
+ + +tag + document.getElementById('json-display').textContent = JSON.stringify(data, null, 2); + }) + .catch(error => console.error('Error fetching data:', error)); +}); \ No newline at end of file