Mercurial > code > home > repos > racc
diff console/Dockerfile @ 6:b1043d39e493
start web console
author | drewp@bigasterisk.com |
---|---|
date | Mon, 13 Mar 2023 18:53:45 -0700 |
parents | 5a99bde7a506 |
children |
line wrap: on
line diff
--- a/console/Dockerfile Mon Mar 13 18:52:00 2023 -0700 +++ b/console/Dockerfile Mon Mar 13 18:53:45 2023 -0700 @@ -1,7 +1,28 @@ FROM bang5:5000/base_basic +ENV KEYRING=/usr/share/keyrings/nodesource.gpg +ENV VERSION=node_18.x +ENV DISTRO=jammy +RUN apt-get install -y gpg + +RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee "$KEYRING" >/dev/null && \ + echo "deb [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list && \ + echo "deb-src [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list && \ + apt-get update && \ + apt-get remove -y nodejs libnode-dev libnode72 && \ + apt-get install -y nodejs && \ + apt autoremove -y && \ + pnpm add -g pnpm + WORKDIR /opt COPY .pdm.toml pdm.lock pyproject.toml ./ RUN pdm sync +RUN pnpm config set @bigasterisk:registry https://bigasterisk.com/js/ +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install + +COPY console.py index.html tsconfig.json vite.config.ts ./ +COPY src ./src/ +