Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviPtrs committed Jan 9, 2025
1 parent 4d122bc commit 8a2b705
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
SCCACHE_ENDPOINT=${{ secrets.SCCACHE_ENDPOINT }}
SCCACHE_REGION=auto
SCCACHE_ARCH=${{ matrix.arch.sccache_arch }}
BUILDPLATFORM=${{ matrix.arch.name }}
tags: |
ghcr.io/renlabs-dev/torus-substrate:${{ steps.commit.outputs.short }}
ghcr.io/renlabs-dev/torus-substrate:${{ env.SANITIZED_REF }}
Expand Down
6 changes: 4 additions & 2 deletions docker/node.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM debian:12-slim AS builder
ARG BUILDPLATFORM=linux/amd64

FROM --platform=$BUILDPLATFORM debian:12-slim AS builder

ARG SCCACHE_BUCKET
ARG SCCACHE_ENDPOINT
Expand Down Expand Up @@ -47,7 +49,7 @@ RUN --mount=type=secret,id=aws-key-id \
./sccache --show-stats; \
fi

FROM debian:12-slim
FROM --platform=$BUILDPLATFORM debian:12-slim

RUN apt update && apt install -y zlib1g && \
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
Expand Down

0 comments on commit 8a2b705

Please sign in to comment.