🐋 refactor: replace onion.container with Dockerfile for improved build process

This commit is contained in:
rE-Bo0t.bx1
2025-11-01 07:33:03 +09:00
parent 127d3acda2
commit 9f967de239
5 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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 }}

View File

@@ -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 .
```

View File

@@ -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