4
4
# by running something like the following
5
5
# docker build --target STAGE -f docker/Dockerfile .
6
6
7
- FROM golang:bullseye as envsubst
7
+ FROM golang:bookworm AS envsubst
8
8
9
9
# v1.2.0
10
10
ARG ENVSUBST_COMMIT_SHA=16035fe3571ad42c7796bf554f978bb2df64231b
@@ -13,7 +13,7 @@ ARG ENVSUBST_COMMIT_SHA=16035fe3571ad42c7796bf554f978bb2df64231b
13
13
RUN go install github.com/a8m/envsubst/cmd/envsubst@$ENVSUBST_COMMIT_SHA \
14
14
&& strip -g /go/bin/envsubst
15
15
16
- FROM rust:bullseye as graph-node-build
16
+ FROM rust:bookworm AS graph-node-build
17
17
18
18
ARG COMMIT_SHA=unknown
19
19
ARG REPO_NAME=unknown
@@ -44,48 +44,48 @@ RUN apt-get update \
44
44
&& echo "CARGO_DEV_BUILD='$CARGO_DEV_BUILD'" >> /etc/image-info
45
45
46
46
# Debug image to access core dumps
47
- FROM graph-node-build as graph-node-debug
47
+ FROM graph-node-build AS graph-node-debug
48
48
RUN apt-get update \
49
49
&& apt-get install -y curl gdb postgresql-client
50
50
51
51
COPY docker/Dockerfile /Dockerfile
52
52
COPY docker/bin/* /usr/local/bin/
53
53
54
54
# The graph-node runtime image with only the executable
55
- FROM debian:bookworm-20241111-slim as graph-node
56
- ENV RUST_LOG ""
57
- ENV GRAPH_LOG ""
58
- ENV EARLY_LOG_CHUNK_SIZE ""
59
- ENV ETHEREUM_RPC_PARALLEL_REQUESTS ""
60
- ENV ETHEREUM_BLOCK_CHUNK_SIZE ""
61
-
62
- ENV postgres_host ""
63
- ENV postgres_user ""
64
- ENV postgres_pass ""
65
- ENV postgres_db ""
66
- ENV postgres_args "sslmode=prefer"
55
+ FROM debian:bookworm-20241111-slim AS graph-node
56
+ ENV RUST_LOG= ""
57
+ ENV GRAPH_LOG= ""
58
+ ENV EARLY_LOG_CHUNK_SIZE= ""
59
+ ENV ETHEREUM_RPC_PARALLEL_REQUESTS= ""
60
+ ENV ETHEREUM_BLOCK_CHUNK_SIZE= ""
61
+
62
+ ENV postgres_host= ""
63
+ ENV postgres_user= ""
64
+ ENV postgres_pass= ""
65
+ ENV postgres_db= ""
66
+ ENV postgres_args= "sslmode=prefer"
67
67
# The full URL to the IPFS node
68
- ENV ipfs ""
68
+ ENV ipfs= ""
69
69
# The etherum network(s) to connect to. Set this to a space-separated
70
70
# list of the networks where each entry has the form NAME:URL
71
- ENV ethereum ""
71
+ ENV ethereum= ""
72
72
# The role the node should have, one of index-node, query-node, or
73
73
# combined-node
74
- ENV node_role "combined-node"
74
+ ENV node_role= "combined-node"
75
75
# The name of this node
76
- ENV node_id "default"
76
+ ENV node_id= "default"
77
77
# The ethereum network polling interval (in milliseconds)
78
- ENV ethereum_polling_interval ""
78
+ ENV ethereum_polling_interval= ""
79
79
80
80
# The location of an optional configuration file for graph-node, as
81
81
# described in ../docs/config.md
82
82
# Using a configuration file is experimental, and the file format may
83
83
# change in backwards-incompatible ways
84
- ENV GRAPH_NODE_CONFIG ""
84
+ ENV GRAPH_NODE_CONFIG= ""
85
85
86
86
# Disable core dumps; this is useful for query nodes with large caches. Set
87
87
# this to anything to disable coredumps (via 'ulimit -c 0')
88
- ENV disable_core_dumps ""
88
+ ENV disable_core_dumps= ""
89
89
90
90
# HTTP port
91
91
EXPOSE 8000
0 commit comments