noble js download in dockerfile
This commit is contained in:
@ -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"]
|
||||
|
5
Makefile
5
Makefile
@ -1,5 +1,5 @@
|
||||
|
||||
run: ./src/public/noble-curves.js test clean build
|
||||
run: test clean build
|
||||
podman pod create --name=e2ee -p 3333:3333
|
||||
podman run -d --pod=e2ee -e POSTGRES_PASSWORD="password" -e POSTGRES_DB="e2ee" -e POSTGRES_USER="e2ee" -e POSTGRES_INITDB_ARGS="--encoding=UTF-8 --lc-collate=C --lc-ctype=C" --name=e2ee-db docker.io/library/postgres:15
|
||||
podman run -d --pod=e2ee -e POSTGRES_PASSWORD="password" -e POSTGRES_DB="e2ee" -e POSTGRES_USER="e2ee" -e SHARED_SECRET="toto" --name=e2ee-app e2ee-messaging-service:latest
|
||||
@ -9,7 +9,4 @@ test:
|
||||
npm test
|
||||
clean:
|
||||
podman pod rm -f e2ee
|
||||
./src/public/noble-curves.js:
|
||||
$(eval URL := $(shell 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 ./src/public/noble-curves.js $(URL)
|
||||
|
||||
|
Reference in New Issue
Block a user