Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3242464
D3871.id12053.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3871.id12053.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 14, 10:08 PM (12 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2487281
Default Alt Text
D3871.id12053.diff (1 KB)
Attached To
Mode
D3871: [keyserver] Dockerfile for Node keyserver
Attached
Detach File
Event Timeline
Log In to Comment