noble js download in dockerfile

This commit is contained in:
2025-03-05 13:19:20 +01:00
parent b7956f5e2c
commit 10f25b8810
2 changed files with 5 additions and 4 deletions

View File

@ -3,5 +3,9 @@ WORKDIR /app
COPY package.json ./
RUN npm install
COPY src/ ./
RUN apt-get update && apt-get install -y wget jq
# Fetch latest noble-curves.js from github
RUN URL=$(wget -q -O - https://api.github.com/repos/paulmillr/noble-curves/releases/latest | jq -r '.assets[] | select(.name | contains("noble-curves.js")) | .browser_download_url') && \
wget -O ./public/noble-curves.js $URL
EXPOSE 3333
CMD ["node", "app.js"]