Skip to content

Commit

Permalink
Update docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Sep 26, 2024
1 parent 62d80b5 commit b874677
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions Dockerfile.slim
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b874677

Please sign in to comment.