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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:12-slim AS builder
FROM ubuntu:24.04 AS builder

ARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEY
Expand Down Expand Up @@ -40,7 +40,7 @@ RUN if [ -n "$AWS_ACCESS_KEY_ID" ]; then \
./sccache --show-stats; \
fi

FROM debian:12-slim
FROM ubuntu:24.04

RUN apt update && apt install -y zlib1g && \
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
Expand Down
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
subspace-node:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./node/chain-specs/main.json:/app/chain_spec.json:ro
- node-data:/data
- ./target/release:/app/target/release
ports:
- "30333:30333" # P2P port
- "9933:9933" # RPC port
- "9944:9944" # WebSocket port
command:
- /app/target/release/node-subspace
- --chain
- /app/chain_spec.json
- --base-path
- /app/node-data
restart: unless-stopped

volumes:
node-data:
Loading