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"]