forked from ethereumjs/ultralight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 698 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 698 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
FROM node:22-alpine
RUN apk update && apk add --no-cache bash g++ make git python3 && rm -rf /var/cache/apk/*
RUN apk add --virtual .build-deps alpine-sdk jq
RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2
WORKDIR /ultralight
COPY .git .git
COPY node_modules node_modules
COPY packages/portalnetwork/dist packages/portalnetwork/dist
COPY packages/cli/dist packages/cli/dist
COPY packages/cli/package.json packages/cli
COPY packages/portalnetwork/package.json packages/portalnetwork
# Sanity check
RUN node /ultralight/packages/cli/dist/index.js --help
ENV BINDADDRESS=
ENV RPCPORT=
ENV PK=
ENTRYPOINT node packages/cli/dist/index.js --bindAddress=BINDADDRESS --rpcPort=RPCPORT