Create datastore certs in dockerfile

This commit is contained in:
Matthew Lopez 2023-12-20 16:14:23 -05:00
parent 845f4e0b27
commit bfdb556c88
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E

View File

@ -1,8 +1,8 @@
diff --git i/Dockerfile w/Dockerfile
index a810a90..3f73456 100644
--- i/Dockerfile
+++ w/Dockerfile
@@ -1,16 +1,13 @@
diff --git i/Dockerfile w/Dockerfile
index a810a90..c119a69 100644
--- i/Dockerfile
+++ w/Dockerfile
@@ -1,16 +1,14 @@
-FROM node:18-alpine
+FROM node:20-alpine
@ -17,6 +17,7 @@ index a810a90..3f73456 100644
COPY . ./
+RUN npm run build
+RUN node generate-certs.js nex datastore
-VOLUME [ "/app/config.json", "/app/certs" ]
+VOLUME [ "/app/certs" ]