From 33eb4e931dc755d91498b597bc35322c7c563f62 Mon Sep 17 00:00:00 2001 From: Arrelin Date: Wed, 18 Mar 2026 09:36:32 +0300 Subject: [PATCH] Add Dockerfile --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3fbc9ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM python:3.12-slim + RUN pip install docker prometheus-client + COPY docker-exporter.py . + CMD ["python", "docker-exporter.py"] + + .gitea/workflows/build.yml: + name: Build + on: + push: + branches: [main] + jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: 192.168.31.100:3847 + username: ${{ gitea.actor }} + password: ${{ secrets.GITEA_TOKEN }} + - uses: docker/build-push-action@v5 + with: + push: true + tags: 192.168.31.100:3847/${{ gitea.repository }}:latest