From b874677b87e5db516fb8602c1b644907e2853dd8 Mon Sep 17 00:00:00 2001 From: acolytec3 <17355484+acolytec3@users.noreply.github.com> Date: Thu, 26 Sep 2024 10:18:36 -0400 Subject: [PATCH] Update docker config --- .dockerignore | 8 +++++++- Dockerfile.slim | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 Dockerfile.slim diff --git a/.dockerignore b/.dockerignore index d45bd0e10..1caab20e9 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,11 @@ -node_modules +packages/archived-browser-client packages/browser-client +packages/era +packages/portal-spec-tests packages/proxy +packages/ui .github .vscode +build +config +scripts diff --git a/Dockerfile.slim b/Dockerfile.slim new file mode 100644 index 000000000..2aad3f19a --- /dev/null +++ b/Dockerfile.slim @@ -0,0 +1,20 @@ +FROM node:20-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 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 + +ENV BINDADDRESS= +ENV RPCPORT= +ENV PK= + +ENTRYPOINT node ultralight/packages/cli/dist/index.js --bindAddress=BINDADDRESS --rpcPort=RPCPORT \ No newline at end of file