From 9f967de239f2e5da86c4cd2ecd8f71fc59d1d511 Mon Sep 17 00:00:00 2001 From: "rE-Bo0t.bx1" <54429050+r3bo0tbx1@users.noreply.github.com> Date: Sat, 1 Nov 2025 07:33:03 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8B=20refactor:=20replace=20onion.cont?= =?UTF-8?q?ainer=20with=20Dockerfile=20for=20improved=20build=20process?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 2 +- .github/workflows/build.yml | 2 +- CONTRIBUTING.md | 6 +++--- onion.container => Dockerfile | 0 README.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename onion.container => Dockerfile (100%) diff --git a/.dockerignore b/.dockerignore index 0f9096b..b2a2687 100644 --- a/.dockerignore +++ b/.dockerignore @@ -42,6 +42,6 @@ node_modules/ __pycache__/ # Keep only files needed for building and running the image -!onion.container +!Dockerfile !docker-entrypoint.sh !relay-status.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 73f54fd..971deec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,7 +70,7 @@ jobs: uses: docker/build-push-action@v6 with: context: . - file: ./onion.container + file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.tags.outputs.tags }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1cc9a65..8cdffb4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,7 +50,7 @@ docker build \ --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ --build-arg BUILD_VERSION="dev" \ -t onion-relay:dev \ - -f onion.container . + -f Dockerfile . # Test your changes docker run --rm onion-relay:dev cat /build-info.txt @@ -160,7 +160,7 @@ How did you test this? ### Docker Build Testing ```bash # Test build -docker build -f onion.container -t test:latest . +docker build -f Dockerfile -t test:latest . # Verify scripts are executable docker run --rm test:latest ls -la /usr/local/bin/ @@ -182,7 +182,7 @@ docker run --rm \ # Build for specific platforms docker buildx build \ --platform linux/amd64,linux/arm64 \ - -f onion.container \ + -f Dockerfile \ -t test:multiarch . ``` diff --git a/onion.container b/Dockerfile similarity index 100% rename from onion.container rename to Dockerfile diff --git a/README.md b/README.md index 8f29a22..1bbcf5b 100644 --- a/README.md +++ b/README.md @@ -585,7 +585,7 @@ docker build \ --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ --build-arg BUILD_VERSION="1.0" \ -t onion-relay:latest \ - -f onion.container . + -f Dockerfile . # Test locally docker run --rm onion-relay:latest cat /build-info.txt