-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile.bootnode
More file actions
38 lines (28 loc) · 946 Bytes
/
Dockerfile.bootnode
File metadata and controls
38 lines (28 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM alpine:3.18
# Install required packages
RUN apk add --no-cache ca-certificates curl bash
# Create lux user
RUN adduser -D -h /home/lux lux
# Create directories (matching the expected paths in startup script)
RUN mkdir -p /luxd/build/plugins /data/plugins /home/lux/.lux/configs
# Set permissions
RUN chown -R lux:lux /luxd /data /home/lux
# Copy the pre-built node binary to the expected location
COPY build/luxd-linux-amd64 /luxd/build/luxd
RUN chmod +x /luxd/build/luxd
# Copy newly built EVM plugin with matching ZAP protocol version
COPY build/evm-linux-amd64 /luxd/build/plugins/mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6
RUN chmod +x /luxd/build/plugins/mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6
# Also add to PATH
RUN ln -s /luxd/build/luxd /usr/local/bin/luxd
# Set user
USER lux
WORKDIR /home/lux
# Expose ports
# P2P
EXPOSE 9651
# HTTP API
EXPOSE 9650
# Staking
EXPOSE 9652
ENTRYPOINT ["/luxd/build/luxd"]