Page MenuHomePhabricator

D3871.id12026.diff
No OneTemporary

D3871.id12026.diff

diff --git a/keyserver/Dockerfile b/keyserver/Dockerfile
--- a/keyserver/Dockerfile
+++ b/keyserver/Dockerfile
@@ -40,3 +40,26 @@
# Actually run yarn
RUN yarn cleaninstall
+
+#-------------------------------------------------------------------------------
+# STEP 2: COPY IN SOURCE FILES
+# We run this later so the above layers are cached if only source files change
+#-------------------------------------------------------------------------------
+
+COPY . .
+
+#-------------------------------------------------------------------------------
+# STEP 3: RUN BUILD SCRIPTS
+# We need to populate keyserver/dista, among other things
+#-------------------------------------------------------------------------------
+
+WORKDIR /app/keyserver
+RUN yarn prod-build
+
+#-------------------------------------------------------------------------------
+# STEP 4: RUN THE SERVER
+# Actually run the Node.js keyserver using nvm
+#-------------------------------------------------------------------------------
+
+EXPOSE 3000
+CMD bash/run-prod.sh

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 14, 10:04 PM (12 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2492908
Default Alt Text
D3871.id12026.diff (1 KB)

Event Timeline