mirror of
https://github.com/r3bo0tbx1/tor-guard-relay.git
synced 2026-04-06 00:32:04 +02:00
🐋 refactor: replace onion.container with Dockerfile for improved build process
This commit is contained in:
@@ -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
|
||||
|
||||
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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 .
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user