Prathamesh Musale
6b74477aff
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8) Reviewed-on: cerc-io/testnet-laconicd-stack#2 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
21 lines
674 B
Docker
21 lines
674 B
Docker
# Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
|
|
ARG VARIANT=18-bullseye
|
|
FROM node:${VARIANT}
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y install --no-install-recommends python3 jq bash curl nano
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN echo "Installing dependencies and building laconic-registry-cli" && \
|
|
yarn && yarn build
|
|
|
|
# Globally install the cli binary
|
|
RUN npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
|
|
RUN yarn global add file:$PWD
|
|
|
|
# Default command sleeps forever so docker doesn't kill it
|
|
CMD ["bash", "-c", "while :; do sleep 600; done"]
|