Page MenuHomePhabricator

D3871.id12027.diff
No OneTemporary

D3871.id12027.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/dist, 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:02 PM (12 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2487281
Default Alt Text
D3871.id12027.diff (1 KB)

Event Timeline