From 8ec16d45802a6dfb24674a09816339f7d85d3577 Mon Sep 17 00:00:00 2001 From: Luiz Carvalho Date: Wed, 7 Feb 2024 11:26:34 -0300 Subject: [PATCH] fix(dockerfile): fix sccache arguments (#13) --- .github/workflows/build-docker.yml | 10 +++++----- Dockerfile | 11 +++++++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index fd57678cc..aa8c04b39 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -29,10 +29,10 @@ jobs: with: context: . build-args: | - AWS_ACCESS_KEY_ID="${{ secrets.AWS_ACCESS_KEY_ID }}" - AWS_SECRET_ACCESS_KEY="${{ secrets.AWS_SECRET_ACCESS_KEY }}" - SCCACHE_BUCKET="agicommies-subspace-cache" - SCCACHE_ENDPOINT="${{ vars.SCCACHE_ENDPOINT }}" - SCCACHE_REGION="auto" + AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} + SCCACHE_BUCKET=agicommies-subspace-cache + SCCACHE_ENDPOINT=${{ vars.SCCACHE_ENDPOINT }} + SCCACHE_REGION=auto push: true tags: ghcr.io/agicommies/subspace:${{ steps.commit.outputs.short }} diff --git a/Dockerfile b/Dockerfile index e678bc5b9..568eb35e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,9 +44,12 @@ RUN if [ -n "$SCCACHE_BUCKET" ]; then \ FROM debian:12-slim WORKDIR /subspace -# Enable extensive backtraces -ENV RUST_BACKTRACE=1 -COPY --from=builder /subspace/target/release/node-subspace /subspace/node-subspace +COPY --from=builder /subspace/target/release/node-subspace /usr/local/bin + +RUN mkdir -p ./snapshots +RUN ln -s -T /node-data/snapshots ./snapshots -ENTRYPOINT ["/subspace/node-subspace"] +# Enable extensive backtraces +ENV RUST_BACKTRACE=1 +ENTRYPOINT ["node-subspace"]