noble js download in dockerfile

This commit is contained in:
Sam Hadow committed 2025-03-05 13:19:20 +01:00
1 parent b7956f5e2c
commit 10f25b8810
2 files changed
+5 -4

No files matched your search

+4
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"]