Skip to content

Commit

Permalink
fix(dockerfile): fix sccache arguments (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
saiintbrisson committed Feb 9, 2024
1 parent 5c97cde commit 8ec16d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 8ec16d4

Please sign in to comment.