Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ jobs:
run: node common/scripts/install-run-rush.js docker
env:
DOCKER_CLI_HINTS: false
DOCKER_BUILDKIT: 1
- name: Configure /etc/hosts
run: |
sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts
Expand Down Expand Up @@ -375,6 +376,7 @@ jobs:
run: node common/scripts/install-run-rush.js docker
env:
DOCKER_CLI_HINTS: false
DOCKER_BUILDKIT: 1
- name: Configure /etc/hosts
run: |
sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts
Expand Down Expand Up @@ -469,6 +471,7 @@ jobs:
run: node common/scripts/install-run-rush.js docker
env:
DOCKER_CLI_HINTS: false
DOCKER_BUILDKIT: 1
- name: Configure /etc/hosts
run: |
sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts
Expand Down Expand Up @@ -550,6 +553,7 @@ jobs:
run: node common/scripts/install-run-rush.js docker
env:
DOCKER_CLI_HINTS: false
DOCKER_BUILDKIT: 1
- name: Configure /etc/hosts
run: |
sudo echo "127.0.0.1 huly.local" | sudo tee -a /etc/hosts
Expand Down Expand Up @@ -674,6 +678,8 @@ jobs:
env:
DOCKER_CLI_HINTS: false
DOCKER_EXTRA: --platform=linux/amd64,linux/arm64
DOCKER_BUILDKIT: 1
DOCKER_BUILD_CLEANUP: true
- name: Docker build love-agent
run: |
cd ./services/ai-bot/love-agent
Expand All @@ -682,6 +688,7 @@ jobs:
env:
DOCKER_CLI_HINTS: false
DOCKER_EXTRA: --platform=linux/amd64,linux/arm64
DOCKER_BUILDKIT: 1
- name: Login to Docker Hub
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/s') }}
uses: docker/login-action@v3
Expand Down
27 changes: 27 additions & 0 deletions common/scripts/docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@

version=$(git rev-parse HEAD)

# Check for cleanup flag from environment
cleanup=false
if [ "$DOCKER_BUILD_CLEANUP" = "true" ]; then
cleanup=true
fi

echo "Building version: $version"

docker build -t "$1" -t "$1:$version" ${DOCKER_EXTRA} .

if [ "$cleanup" = true ]; then
echo "Cleaning up build artifacts..."

if [ -d "bundle" ]; then
echo " Removing bundle/"
rm -rf bundle
fi

if [ -d "dist" ]; then
echo " Removing dist/"
rm -rf dist
fi

if [ -d ".rush" ]; then
echo " Removing .rush/"
rm -rf .rush
fi

echo " Size after cleanup: $(du -sh . 2>/dev/null | cut -f1)"
fi
2 changes: 1 addition & 1 deletion dev/tool/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hardcoreeng/base
FROM hardcoreeng/base-slim:v20250916
WORKDIR /usr/src/app

COPY bundle/bundle.js ./
Expand Down
2 changes: 1 addition & 1 deletion services/backup/backup-api-pod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hardcoreeng/front-base:v20250916
FROM hardcoreeng/base-slim:v20250916
WORKDIR /app

COPY bundle/bundle.js ./
Expand Down
2 changes: 1 addition & 1 deletion services/billing/pod-billing/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hardcoreeng/base:v20250916
FROM hardcoreeng/base-slim:v20250916
WORKDIR /app

COPY bundle/bundle.js ./
Expand Down
2 changes: 1 addition & 1 deletion services/export/pod-export/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

FROM hardcoreeng/base:v20250916
FROM hardcoreeng/base-slim:v20250916
WORKDIR /usr/src/app
COPY bundle/bundle.js ./

Expand Down
2 changes: 1 addition & 1 deletion services/payment/pod-payment/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM hardcoreeng/base:v20250916
FROM hardcoreeng/base-slim:v20250916
WORKDIR /app

COPY bundle/bundle.js ./
Expand Down
Loading