Prathamesh Musale
774184c810
Part of [Rename laconic2d to laconicd](https://www.notion.so/Rename-laconic2d-to-laconicd-9028d0c020d24d1288e92ebcb773d7a7) Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Reviewed-on: cerc-io/testnet-laconicd-stack#8 Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to> Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
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"]
|